summaryrefslogblamecommitdiff
path: root/print_operational.py
blob: 828075fd7e71a76c038102dbfe598ce44b3d63b1 (plain) (tree)
1
2
3
4
5
6
7






                                                    
from lxml import etree as et
from ncserver.base.modman import ModuleManager
from netconf.util import elm
mgr = ModuleManager()
node = elm('nc:data')
mgr.collect_operational(node)
print(et.tostring(node, pretty_print=True).decode())