summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ncserver/module/interfaces.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ncserver/module/interfaces.py b/ncserver/module/interfaces.py
index 16a90cd..710ec5c 100644
--- a/ncserver/module/interfaces.py
+++ b/ncserver/module/interfaces.py
@@ -95,11 +95,12 @@ def _add_iface_contents(container, ifaces):
type_num = type_num.strip()
if type_num in types.keys():
iana_xmlns = "urn:ietf:params:xml:ns:yang:iana-if-type"
- iface.append(util.leaf_elm('if:type', 'ianaift:'+types[type_num],
- nsmap={'ianaift': iana_xmlns}))
+ iface.append(util.leaf_elm('if:type',
+ 'ianaift:'+types[type_num],
+ nsmap={'ianaift': iana_xmlns}))
else:
LOGGER.warning(_('unknown Linux hwtype for %s: %s'),
- ifname.name, type_num)
+ ifname.name, type_num)
def running(node):