Configure modules.xml
Location
This file is located in /etc/ensuite/yencap/modules.xml
Description
This file contains the set of modules to be instantiated by YencaP. If a module is described by a Yang module then the following infos are needed :
- yanguri: the reference of the name space and the implemented Yang module
- cache-lifetime: the duration of data validity. When the data is out-of-date and YencaP needs the module data, it will update the cache by querying the module. This is required because data managed by a module may not be isolated, i.e. may be updated by other means than YencaP
- parameters: a list of additional parameters specific to a module. This element is optional
else the description of a module is a bit more complex:
- name: the module name
- xpath: the XPath expression used to identify the parent node where the data of that module will be attached
- namespace: the namespace of the module
- cache-lifetime : as above
- parameters: as above
Below is an example of the modules.xml file with a Yang compliant module Interface and a not Yang compliant module for BGP.
<?xml version="1.0" encoding="UTF&-;8"?> <modules xmlns:ycp="urn:loria:madynes:ensuite:yencap:1.0"> <module> <yanguri>urn:loria:madynes:ensuite:yencap:module:Interface:1.0?module=interface</yanguri> <cache-lifetime>100</cache-lifetime> </module> <module> <name>BGP</name> <xpath>/ycp:netconf/ycp:routing</xpath> <namespace>urn:loria:madynes:ensuite:yencap:module:BGP:1.0</namespace> <cache-lifetime>1000000</cache-lifetime> <parameters> <host>127.0.0.1</host> <port>2605</port> <password>zebra</password> <allowxpath>true</allowxpath> <enable_pass></enable_pass> </parameters> </module> ... </modules> |