Fix incorrect mac destination
Use router mac when sending packet from one subnet to another
Change-Id: Ie68cd2bd8b5d84535f607b82ab3dac8a2e5d6673
diff --git a/TestON/tests/USECASE/SegmentRouting/INT/INT.py b/TestON/tests/USECASE/SegmentRouting/INT/INT.py
index d307c9d..a902273 100644
--- a/TestON/tests/USECASE/SegmentRouting/INT/INT.py
+++ b/TestON/tests/USECASE/SegmentRouting/INT/INT.py
@@ -20,9 +20,8 @@
main.step("Setting up hosts and variables")
srcIfaceName = main.h1.interfaces[0]["name"]
- dstIfaceName = main.h2.interfaces[0]["name"]
srcMac = main.h1.getMac(srcIfaceName)
- dstMac = main.h2.getMac(dstIfaceName)
+ dstMac = main.params.get("routerMac", "00:00:00:00:00:00")
srcIp = main.h1.interfaces[0]['ips'][0]
dstIp = main.h2.interfaces[0]['ips'][0]
srcPort = 2000
@@ -87,7 +86,7 @@
srcIfaceName = main.h1.interfaces[0]["name"]
dstIfaceName = main.h2.interfaces[0]["name"]
srcMac = main.h1.getMac(srcIfaceName)
- dstMac = main.h2.getMac(dstIfaceName)
+ dstMac = main.params.get("routerMac", "00:00:00:00:00:00")
srcIp = main.h1.interfaces[0]['ips'][0]
dstIp = main.h2.interfaces[0]['ips'][0]
srcPort = 2000