aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2020-03-31 18:19:03 +0200
committerJan Gelety <jgelety@cisco.com>2020-05-04 07:36:26 +0000
commita6f1a1511bbede1b86e95d00cfad340897432c92 (patch)
tree1ba4442cb5254712812de98ccc2815f8dcde2b1c /resources/libraries/python
parentfada1fcb4e27d948bbcb2c6aa7e50347e953c898 (diff)
VPP-DEV API Coverages: SRv6
Jira: CSIT-1698 Change-Id: I6d9154284990df8877850e4014716510016e485b Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/python')
-rw-r--r--resources/libraries/python/SRv6.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/resources/libraries/python/SRv6.py b/resources/libraries/python/SRv6.py
index 86dd0028bd..4ff8866bda 100644
--- a/resources/libraries/python/SRv6.py
+++ b/resources/libraries/python/SRv6.py
@@ -292,10 +292,10 @@ class SRv6:
ip_addr = ip_address(ip_addr)
prefix = IPUtil.create_prefix_object(ip_addr, int(prefix))
traffic_type = getattr(
- SRv6PolicySteeringTypes, u"SR_STEER_IPV4"
- ).value if ip_addr.version == 4 else getattr(
- SRv6PolicySteeringTypes, u"SR_STEER_IPV6"
- ).value
+ SRv6PolicySteeringTypes, u"SR_STEER_IPV4"
+ ).value if ip_addr.version == 4 else getattr(
+ SRv6PolicySteeringTypes, u"SR_STEER_IPV6"
+ ).value
else:
raise ValueError(f"Unsupported mode: {mode}")
@@ -326,8 +326,8 @@ class SRv6:
is missing.
"""
sw_if_index, prefix, traffic_type = SRv6._get_sr_steer_policy_args(
- node, mode, interface, ip_addr, prefix
- )
+ node, mode, interface, ip_addr, prefix
+ )
cmd = u"sr_steering_add_del"
args = dict(