diff options
author | Vratko Polak <vrpolak@cisco.com> | 2019-07-10 16:18:26 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2019-07-10 20:16:59 +0000 |
commit | 7b0e8a9dee0f874c4b7317e9132064dbab8fd34a (patch) | |
tree | 6363b0625c9b00a1e9eea0bd45d027353dc464f2 /resources/libraries/python/IPUtil.py | |
parent | 82094363f6077e1b28845719db3a6191c0c93a99 (diff) |
Fix few pylint violations
+ Stop attempting to check test/ as module inits are not there.
Change-Id: Ia4e498061be3e3118b07e98c9c2f761f2454653e
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/python/IPUtil.py')
-rw-r--r-- | resources/libraries/python/IPUtil.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/libraries/python/IPUtil.py b/resources/libraries/python/IPUtil.py index 17ba75d7fb..2dafebf5f6 100644 --- a/resources/libraries/python/IPUtil.py +++ b/resources/libraries/python/IPUtil.py @@ -161,13 +161,13 @@ class IPUtil(object): :param node: VPP node. :type node: dict """ - ip = ip_address(unicode(address)) + addr = ip_address(unicode(address)) PapiExecutor.run_cli_cmd( node, 'show {ip_ver} fib {addr}/{addr_len}'.format( - ip_ver='ip6' if ip.version == 6 else 'ip', - addr=ip, - addr_len=ip.max_prefixlen)) + ip_ver='ip6' if addr.version == 6 else 'ip', + addr=addr, + addr_len=addr.max_prefixlen)) @staticmethod def get_interface_vrf_table(node, interface, ip_version='ipv4'): |