Skip to content

Commit

Permalink
Introduce interface address
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 d0c5d5f commit 0c79782
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 @@ -124,6 +124,7 @@ def test_MirrorAddRemove(self, dvs, testlog):
session = "TEST_SESSION"
src_ip = "1.1.1.1"
dst_ip = "2.2.2.2"
intf_addr = "10.0.0.0/31"

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

# add IP address to Ethernet16
self.add_ip_address("Ethernet16", "10.0.0.0/31")
self.add_ip_address("Ethernet16", intf_addr)
assert self.get_mirror_session_state(session)["status"] == "inactive"

# add neighbor to Ethernet16
Expand Down Expand Up @@ -193,7 +194,7 @@ def test_MirrorAddRemove(self, dvs, testlog):
assert self.get_mirror_session_state(session)["status"] == "inactive"

# remove IP address
self.remove_ip_address("Ethernet16", "10.0.0.0/31")
self.remove_ip_address("Ethernet16", intf_addr)
assert self.get_mirror_session_state(session)["status"] == "inactive"

# bring down Ethernet16
Expand Down

0 comments on commit 0c79782

Please sign in to comment.