diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-08-28 00:37:24 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-08-28 00:37:24 -0500 |
commit | 44685f1b07eabd70ada8504d6c77321c5a4de726 (patch) | |
tree | e36f976d032a10ee0f78e03893e5e446d2bc5c21 /print_operational.py | |
parent | b99bcb0660958c109e1efb601790d4de1c6bf86d (diff) | |
download | netconfapk-44685f1b07eabd70ada8504d6c77321c5a4de726.tar.gz netconfapk-44685f1b07eabd70ada8504d6c77321c5a4de726.tar.bz2 netconfapk-44685f1b07eabd70ada8504d6c77321c5a4de726.tar.xz netconfapk-44685f1b07eabd70ada8504d6c77321c5a4de726.zip |
Implement rudimentary module manager
This implements requirements 1 and 5 for the module management system.
Diffstat (limited to 'print_operational.py')
-rw-r--r-- | print_operational.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/print_operational.py b/print_operational.py new file mode 100644 index 0000000..828075f --- /dev/null +++ b/print_operational.py @@ -0,0 +1,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()) |