summaryrefslogtreecommitdiff
path: root/ncserver/module
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-10-26 16:44:09 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-10-26 16:44:09 -0500
commit363ba115df9885d645ec87dc983c530113a2a312 (patch)
treea7fd3136dcd84d17e87314e80ddac5c5898de9ee /ncserver/module
parent8f4c96353b274673480133e4721b2cc24b3bc3a9 (diff)
downloadnetconfapk-363ba115df9885d645ec87dc983c530113a2a312.tar.gz
netconfapk-363ba115df9885d645ec87dc983c530113a2a312.tar.bz2
netconfapk-363ba115df9885d645ec87dc983c530113a2a312.tar.xz
netconfapk-363ba115df9885d645ec87dc983c530113a2a312.zip
ncserver: Make operational and running truly separate
This makes it easier to add more modules later.
Diffstat (limited to 'ncserver/module')
-rw-r--r--ncserver/module/openrc.py1
-rw-r--r--ncserver/module/system.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/ncserver/module/openrc.py b/ncserver/module/openrc.py
index bd10b98..c4e45fa 100644
--- a/ncserver/module/openrc.py
+++ b/ncserver/module/openrc.py
@@ -249,6 +249,7 @@ def running(node):
def operational(node):
"""Retrieve the service state for this device."""
+ running(node) # Include the running configuration.
svcs = util.subelm(node, 'svcs:service-status')
for service in service_list():
diff --git a/ncserver/module/system.py b/ncserver/module/system.py
index 5f72ab0..371ff39 100644
--- a/ncserver/module/system.py
+++ b/ncserver/module/system.py
@@ -358,6 +358,7 @@ def running(node):
def operational(node):
"""Retrieve the operational configuration for this system."""
+ running(node) # Include the running configuration.
state = util.subelm(node, 'sys:system-state')
plat = util.subelm(state, 'sys:platform')