Skip to content

Commit

Permalink
Introduce next hop ip
Browse files Browse the repository at this point in the history
Signed-off-by: Wenda Ni <wonda.ni@gmail.com>
  • Loading branch information
wendani committed Jul 6, 2021
1 parent 0c79782 commit f60b974
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def test_MirrorAddRemove(self, dvs, testlog):
src_ip = "1.1.1.1"
dst_ip = "2.2.2.2"
intf_addr = "10.0.0.0/31"
nhop_ip = "10.0.0.1"

marker = dvs.add_log_marker()
# create mirror session
Expand All @@ -141,7 +142,7 @@ def test_MirrorAddRemove(self, dvs, testlog):
assert self.get_mirror_session_state(session)["status"] == "inactive"

# add neighbor to Ethernet16
self.add_neighbor("Ethernet16", "10.0.0.1", "02:04:06:08:10:12")
self.add_neighbor("Ethernet16", nhop_ip, "02:04:06:08:10:12")
assert self.get_mirror_session_state(session)["status"] == "inactive"

# add route to mirror destination via 10.0.0.1
Expand Down Expand Up @@ -190,7 +191,7 @@ def test_MirrorAddRemove(self, dvs, testlog):
assert self.get_mirror_session_state(session)["status"] == "inactive"

# remove neighbor
self.remove_neighbor("Ethernet16", "10.0.0.1")
self.remove_neighbor("Ethernet16", nhop_ip)
assert self.get_mirror_session_state(session)["status"] == "inactive"

# remove IP address
Expand Down

0 comments on commit f60b974

Please sign in to comment.