diff options
author | Tibor Frank <tifrank@cisco.com> | 2016-12-15 10:52:33 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2016-12-16 08:35:32 +0100 |
commit | cf561a6e3d4c4fbd78ab6c9d0a9aa817bb3300fc (patch) | |
tree | 0b4d5d2dbda78223d77d76e237285396d42c868e /resources/libraries/python/LispSetup.py | |
parent | 677ae40a2be6db9f49b19ada3c4299a8904f7784 (diff) |
Pylint fixes
- Fix PyLint errors
- Fix comments in touched python modules
Change-Id: I26db2d292a41969cf38b9b0bdd49c4fb15349102
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/libraries/python/LispSetup.py')
-rw-r--r-- | resources/libraries/python/LispSetup.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/libraries/python/LispSetup.py b/resources/libraries/python/LispSetup.py index 85749955e7..5ef8bc06a9 100644 --- a/resources/libraries/python/LispSetup.py +++ b/resources/libraries/python/LispSetup.py @@ -610,21 +610,21 @@ class LispEidTableMap(object): """ @staticmethod - def vpp_lisp_eid_table_mapping(node, vni, bd=None, vrf=None): + def vpp_lisp_eid_table_mapping(node, vni, bd_id=None, vrf=None): """ Map LISP VNI to either bridge domain ID, or VRF ID. :param node: VPP node. :param vni: Lisp VNI. - :param bd: Bridge domain ID. + :param bd_id: Bridge domain ID. :param vrf: VRF id. :type node: dict :type vni: int - :type bd: int + :type bd_id: int :type vrf: int """ - if bd: - bd_or_vrf = 'bd_index {}'.format(bd) + if bd_id: + bd_or_vrf = 'bd_index {}'.format(bd_id) else: bd_or_vrf = 'vrf {}'.format(vrf) VatExecutor.cmd_from_template(node, |