From 0c797828939f78e930797726899c2d3486e9b75e Mon Sep 17 00:00:00 2001 From: Wenda Ni Date: Tue, 6 Jul 2021 22:42:49 +0000 Subject: [PATCH] Introduce interface address Signed-off-by: Wenda Ni --- tests/test_mirror.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_mirror.py b/tests/test_mirror.py index 4190a96eaa..fb6c335006 100644 --- a/tests/test_mirror.py +++ b/tests/test_mirror.py @@ -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 @@ -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 @@ -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