X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FGBP.py;h=f0d07a12b700532a4d17ac87b7f39d98466e47f6;hb=ab0c87c7d8163f95596fcf32b66d04cb9ce89839;hp=3d4d249b10f4741a1056eea29f5ba3a1633ab3be;hpb=d68951ac245150eeefa6e0f4156e4c1b5c9e9325;p=csit.git diff --git a/resources/libraries/python/GBP.py b/resources/libraries/python/GBP.py index 3d4d249b10..f0d07a12b7 100644 --- a/resources/libraries/python/GBP.py +++ b/resources/libraries/python/GBP.py @@ -43,8 +43,9 @@ class GBPBridgeDomainFlags(IntEnum): class GBPSubnetType(IntEnum): """GBP Subnet Type.""" GBP_API_SUBNET_TRANSPORT = 1 - GBP_API_SUBNET_STITCHED_INTERNAL = 2 # pylint: disable=invalid-name - GBP_API_SUBNET_STITCHED_EXTERNAL = 3 # pylint: disable=invalid-name + # TODO: Names too long for pylint, fix in VPP. + GBP_API_SUBNET_STITCHED_INTERNAL = 2 + GBP_API_SUBNET_STITCHED_EXTERNAL = 3 GBP_API_SUBNET_L3_OUT = 4 GBP_API_SUBNET_ANON_L3_OUT = 5 @@ -245,7 +246,7 @@ class GBP: err_msg = u"Failed to add external GBP interface on {node[u'host']}!" args_in = dict( - is_add=1, + is_add=True, ext_itf=dict( sw_if_index=sw_if_index, bd_id=bd_id, @@ -280,7 +281,7 @@ class GBP: err_msg = f"Failed to add GBP subnet on {node[u'host']}!" args_in = dict( - is_add=1, + is_add=True, subnet=dict( type=getattr(GBPSubnetType, u"GBP_API_SUBNET_L3_OUT").value, sw_if_index=sw_if_index, @@ -329,7 +330,7 @@ class GBP: rules = [rule_permit, rule_permit] args_in = dict( - is_add=1, + is_add=True, contract=dict( acl_index=acl_index, sclass=sclass,