summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-11-30 17:06:53 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-11-30 17:06:53 -0600
commit736962192220fdff60ed434654ecf561183806c5 (patch)
treef8d3be055bddc7516ef4b278b47dda1fd807d3dc
parentc7484b5f9babd57bb56043e88cd7b4ab726c7d61 (diff)
downloadnetconfapk-736962192220fdff60ed434654ecf561183806c5.tar.gz
netconfapk-736962192220fdff60ed434654ecf561183806c5.tar.bz2
netconfapk-736962192220fdff60ed434654ecf561183806c5.tar.xz
netconfapk-736962192220fdff60ed434654ecf561183806c5.zip
ietf-interfaces: PEP 8 fixes
-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):