Skip to main content.

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 :

else the description of a module is a bit more complex:

YencaP uses this file to instantiate the module objects. The single rule is that a module class and the python filename of the module must both be called {name}_Module. In that way, the YencaP core does not need any update to manage a new module. The code is able to instantiate module objects from their class name.
<?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>