diff options
author | Neale Ranns <nranns@cisco.com> | 2017-03-10 03:04:12 -0800 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2017-03-10 12:50:54 +0000 |
commit | 69b7aa424abaec4adae0e9007794cf35a7f9849f (patch) | |
tree | 22260de38a9094fbfa871e4e565cb7a3a447fb56 /test/vpp_ip_route.py | |
parent | 78053e164fbb75c014126a3deff440f165504582 (diff) |
Fix MAP-E UT. Add functionality in MAP code to delete the pre-resolved next-hops. UT checks for no-leftover-state now pass
Change-Id: I9e980ee117c0b6aebc6c7a0fcc153a7c0eaf0c72
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/vpp_ip_route.py')
-rw-r--r-- | test/vpp_ip_route.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/vpp_ip_route.py b/test/vpp_ip_route.py index 7a62b230fc1..e1c2b4b41f9 100644 --- a/test/vpp_ip_route.py +++ b/test/vpp_ip_route.py @@ -79,6 +79,13 @@ class VppIpRoute(VppObject): else: self.dest_addr = inet_pton(AF_INET, dest_addr) + def modify(self, paths, is_local=0, + is_unreach=0, is_prohibit=0): + self.paths = paths + self.is_local = is_local + self.is_unreach = is_unreach + self.is_prohibit = is_prohibit + def add_vpp_config(self): if self.is_local or self.is_unreach or self.is_prohibit: self._test.vapi.ip_add_del_route( @@ -126,7 +133,8 @@ class VppIpRoute(VppObject): path.nh_addr, path.nh_itf, table_id=self.table_id, - is_add=0) + is_add=0, + is_ipv6=self.is_ip6) def query_vpp_config(self): return find_route(self._test, |