Skip to main content.

Future Work

This is a draft of possible EnSuite future works


Yang modules cannot be augmented, sub-modules cannot be used. New operations and notifications are not considered


YencaP does not send notifications neither YencaP Manager is able to receive them

Python exception

It would be better if modules can throw exception (ModuleException) when an error occurs. Then, the Netconf operation would catch this kind of exceptions and follow the error-option (continue-on-error, stop-on-error, ...).

Refactoring routing data model

The routing part of the data model needs to be refactored. route-map must be separated from BGP module since it can be used in other routing protocols. Also interfaces should be separated from the RIP module. A possible new data model organization would be the following:

    <!-- other interfaces here -->
       <route-map direct="in" ref="route-map1"/>
      <!-- other neighbors here -->
    <route-map id="route-map1">
      <prefix-list ref="prefix-list1"/>

Implement the SOAP application protocol

SOAPpy and python-fpconst packages provide the SOAP support in Linux distribution. It should be easy to implement a SOAP server and client.

Sample client code

import SOAPpy
test = 42
server = SOAPpy.SOAPProxy("http://localhost:8888")
server = server._sa ("urn:soapinterop")

hd = SOAPpy.Header() hd.InteropTestHeader ='This should fault, as you don't understand the header.' hd._setMustUnderstand ('InteropTestHeader', 0) hd._setActor ('InteropTestHeader','') server = server._hd (hd)

print server.echoInteger (test)

Sample server code

import SOAPpy

def echoInteger (inputInteger, _SOAPContext): c = _SOAPContext print c.xmldata print c.header print c.body print c.connection.getpeername() print c.soapaction print c.httpheaders return inputInteger

host = 'localhost' port = 8888

server = SOAPpy.SOAPServer ( (host, port) ) server.registerFunction (SOAPpy.MethodSig(echoInteger, keywords=0,context=1))


Schema based approach

The goal is to make use of XML schema to define the data model. It allows XML structure validation.

Main Ensuite schema

  <xsd:import name="module_RIP.xsd"/>
  <xsd:import name="module_BGP.xsd"/>

<xsd:element name="netconf">
  <element name="rip" type="ripmodule:ripType"/>
  <element name="bgp" type="bgpmodule:bgpType"/>


Group based management

The goal is to provide a group based management that allows to manage transparently multiple Netconf agents as if we manage only one. It requires a change to YencapManager in the config.xml file :

  <group name="routers">
    <agent id=""/>
    <agent id=""/>
  <group name="pbx">
    <agent id=""/>
  <group name="workstations">
    <agent id=""/>
    <agent id=""/>
    <agent id=""/>
    <agent id=""/>

Improve error handling from modules

It would be nice to better signal module errors especially for EnSuite newcomers. For example, if something went wrong during instantiation or if the getConfig() isn't replying with a valid XML document.