Fix function name collision between hostdriver and scapy cli driver
Change-Id: I9b02a60e7e0eed99a3e9d0706e1edf31c6fa3042
diff --git a/TestON/drivers/common/cli/hostdriver.py b/TestON/drivers/common/cli/hostdriver.py
index 080f6cc..3232361 100644
--- a/TestON/drivers/common/cli/hostdriver.py
+++ b/TestON/drivers/common/cli/hostdriver.py
@@ -248,7 +248,7 @@
main.log.error( self.name + ": " + self.handle.before )
return main.FALSE
- def addRoute( self, route, gw, interface=None, sudoRequired=True, purgeOnDisconnect=True ):
+ def addRouteToHost( self, route, gw, interface=None, sudoRequired=True, purgeOnDisconnect=True ):
"""
Adds a static route to the host
Arguments:
diff --git a/TestON/tests/USECASE/SegmentRouting/SRStaging/SRpairedLeaves/SRpairedLeaves.py b/TestON/tests/USECASE/SegmentRouting/SRStaging/SRpairedLeaves/SRpairedLeaves.py
index 71cc5c2..96618cf 100644
--- a/TestON/tests/USECASE/SegmentRouting/SRStaging/SRpairedLeaves/SRpairedLeaves.py
+++ b/TestON/tests/USECASE/SegmentRouting/SRStaging/SRpairedLeaves/SRpairedLeaves.py
@@ -637,7 +637,7 @@
fabricIntfIp = ipMatch.group(1)
main.log.debug( "Found %s as gateway ip for %s" % ( fabricIntfIp, srcComponent.shortName ) )
# FIXME: How to chose the correct one if there are multiple? look at subnets
- srcComponent.addRoute( route, fabricIntfIp, srcIface, sudoRequired=True, purgeOnDisconnect=True )
+ srcComponent.addRouteToHost( route, fabricIntfIp, srcIface, sudoRequired=True, purgeOnDisconnect=True )
main.log.debug( srcComponent.getRoutes() )
# Add route in ONOS