diff options
Diffstat (limited to 'ncserver/module/ip.py')
-rw-r--r-- | ncserver/module/ip.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/ncserver/module/ip.py b/ncserver/module/ip.py index 065a4d4..25975a4 100644 --- a/ncserver/module/ip.py +++ b/ncserver/module/ip.py @@ -47,11 +47,8 @@ M_REVISION = "2018-02-22" M_IMPORTS = { - 'ietf-interfaces@2018-02-20': { - 'ns': "urn:ietf:params:xml:ns:yang:ietf-interfaces", 'prefix': "if" - }, - 'iana-inet-types@2013-07-15': { - 'ns': "urn:ietf:params:xml:ns:yang:iana-inet-types", 'prefix': "inet" + 'ietf-inet-types@2013-07-15': { + 'ns': "urn:ietf:params:xml:ns:yang:ietf-inet-types", 'prefix': "inet" }, 'ietf-yang-types@2013-07-15': { 'ns': "urn:ietf:params:xml:ns:yang:ietf-yang-types", 'prefix': "yang" @@ -99,13 +96,13 @@ def _add_ipv4(iface, getter): """Add IPv4 configuration nodes.""" name = iface.find('{'+IF_NS+'}name').text ipv4 = util.subelm(iface, 'ip:ipv4') - ipv4.append(util.leaf_elm('ip:enabled', - from_bool(getter(name, 'ipv4_enabled')))) + #ipv4.append(util.leaf_elm('ip:enabled', + # from_bool(getter(name, 'ipv4_enabled')))) ipv4.append(util.leaf_elm('ip:forwarding', from_bool(getter(name, 'ipv4_forwarding')))) v4mtu = getter(name, 'ipv4_mtu') if v4mtu is not None: - ipv4.append(util.leaf_elm('ip:mtu', v4mtu)) + ipv4.append(util.leaf_elm('ip:mtu', v4mtu - 28)) return ipv4 |