X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FInterfaceUtil.py;h=1a97130a8e6c0d65ace81db21816672eaa2ab064;hb=6da7266754c28754c04cf37d1974e39766a261f6;hp=7024e85dc88f1320904d28aa50798818fe149ea9;hpb=fb2fb651fa600a94c2e02891db2676c66490e875;p=csit.git diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py index 7024e85dc8..1a97130a8e 100644 --- a/resources/libraries/python/InterfaceUtil.py +++ b/resources/libraries/python/InterfaceUtil.py @@ -32,7 +32,7 @@ from resources.libraries.python.VPPUtil import VPPUtil class LinkBondLoadBalance(IntEnum): """Link bonding load balance.""" - L2 = 0 + L2 = 0 # pylint: disable=invalid-name L34 = 1 L23 = 2 @@ -1161,10 +1161,8 @@ class InterfaceUtil(object): for bond in details: data += ('{b}\n'.format(b=bond['interface_name'].rstrip('\x00'))) - data += (' mode: {m}\n'.format(m=LinkBondMode( - bond['mode']).name.lower())) - data += (' load balance: {lb}\n'.format(lb=LinkBondLoadBalance( - bond['lb']).name.lower())) + data += (' mode: {m}\n'.format(m=bond['mode']).lower()) + data += (' load balance: {lb}\n'.format(lb=bond['lb']).lower()) data += (' number of active slaves: {n}\n'.format( n=bond['active_slaves'])) if verbose: