summaryrefslogtreecommitdiffstats
path: root/test/vpp_ip_route.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-10-13 05:15:07 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2017-10-14 09:11:42 +0000
commit054c03ac9c20a5e38121590b83f01fd91f82acf0 (patch)
tree93ec5f8d85defb3e58d12fdca917a68000dbe6d3 /test/vpp_ip_route.py
parentd77275307b6ad6459ecba01912a302fb7dbf0f02 (diff)
Source Lookup progammable via API
Change-Id: I5d5d4f22b6369d504455a644f73076d772fbcfb4 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/vpp_ip_route.py')
-rw-r--r--test/vpp_ip_route.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/vpp_ip_route.py b/test/vpp_ip_route.py
index e670230487a..7501146e96a 100644
--- a/test/vpp_ip_route.py
+++ b/test/vpp_ip_route.py
@@ -107,6 +107,7 @@ class VppRoutePath(object):
is_interface_rx=0,
is_resolve_host=0,
is_resolve_attached=0,
+ is_source_lookup=0,
proto=DpoProto.DPO_PROTO_IP4):
self.nh_itf = nh_sw_if_index
self.nh_table_id = nh_table_id
@@ -124,6 +125,7 @@ class VppRoutePath(object):
self.is_resolve_host = is_resolve_host
self.is_resolve_attached = is_resolve_attached
self.is_interface_rx = is_interface_rx
+ self.is_source_lookup = is_source_lookup
self.is_rpf_id = 0
if rpf_id != 0:
self.is_rpf_id = 1
@@ -197,6 +199,7 @@ class VppIpRoute(VppObject):
if path.proto == DpoProto.DPO_PROTO_ETHERNET else 0,
is_resolve_host=path.is_resolve_host,
is_resolve_attached=path.is_resolve_attached,
+ is_source_lookup=path.is_source_lookup,
is_multipath=1 if len(self.paths) > 1 else 0)
self._test.registry.register(self, self._test.logger)