diff options
author | Peter Mikus <pmikus@cisco.com> | 2018-09-01 15:29:37 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2018-09-04 07:29:54 +0000 |
commit | be430a282810185c939c1fbbf3042036b814f38a (patch) | |
tree | 1d5a18291e74ee892703e7bc81ed96209e8716ae /resources/libraries/python/InterfaceUtil.py | |
parent | 7db6faf25da39820d321222f7f8fcb191585add9 (diff) |
Fix pylint part 1
- Decrease pylint errors. Part: easy
Change-Id: I452e5b5a11e9b78c03cd173a3848babe21b93c73
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/InterfaceUtil.py')
-rw-r--r-- | resources/libraries/python/InterfaceUtil.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py index 7286633676..94cee5ecbc 100644 --- a/resources/libraries/python/InterfaceUtil.py +++ b/resources/libraries/python/InterfaceUtil.py @@ -933,11 +933,11 @@ class InterfaceUtil(object): the node. """ hw_addr = '' if mac is None else 'hw-addr {mac}'.format(mac=mac) - lb = '' if load_balance is None \ - else 'lb {lb}'.format(lb=load_balance) + ldb = '' if load_balance is None \ + else 'lb {ldb}'.format(ldb=load_balance) output = VatExecutor.cmd_from_template( - node, 'create_bond_interface.vat', mode=mode, lb=lb, mac=hw_addr) + node, 'create_bond_interface.vat', mode=mode, lb=ldb, mac=hw_addr) if output[0].get('retval') == 0: sw_if_idx = output[0].get('sw_if_index') @@ -945,8 +945,8 @@ class InterfaceUtil(object): if_key = Topology.get_interface_by_sw_index(node, sw_if_idx) return if_key else: - raise RuntimeError('Create bond interface failed on node "{n}"' - .format(n=node['host'])) + raise RuntimeError('Create bond interface failed on "{host}"' + .format(host=node['host'])) @staticmethod def add_bond_eth_interface(node, ifc_name=None, sw_if_idx=None): |