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 node where the data of that module will be attached
- namespace: the namespace of the module
- cache-lifetime : as above
- parameters: as above
<?xml version="1.0" encoding="UTF&-;8"?>
<modules xmlns:ycp="urn:loria:madynes:ensuite:yencap:1.0"
xmlns:ifs="urn:loria:madynes:ensuite:yencap:module:Interfaces:1.0"
xmlns:bgp="urn:loria:madynes:ensuite:yencap:module:BGP:1.0"
xmlns:ac="urn:loria:madynes:ensuite:yencap:module:RBAC:1.0"
xmlns:rt="urn:loria:madynes:ensuite:yencap:module:Route:1.0"
xmlns:s="urn:loria:madynes:ensuite:yencap:module:System:1.0"
xmlns:rip="urn:loria:madynes:ensuite:yencap:module:RIP:1.0">
<module>
<yanguri>urn:loria:madynes:ensuite:yencap:module:Log:1.0?module=log</yanguri>
<cache-lifetime>1000000</cache-lifetime>
</module></modules>
|
