commit | f24904ef65e60457d539af22ad6d0890f44167b4 | [log] [tgz] |
---|---|---|
author | You Wang <you@opennetworking.org> | Fri Aug 03 15:36:41 2018 -0700 |
committer | You Wang <you@opennetworking.org> | Fri Aug 03 15:36:41 2018 -0700 |
tree | 7960dfcb0d1712f632f4182c58a6d19eb8cc01c1 | |
parent | 3a5f74cc45b40a509155cce008a68751511353b3 [diff] |
Correctly remove scapy hosts in SRRouting Change-Id: Iecf55a30cfc341579f1905d80cb15c33bdc10e30
diff --git a/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py b/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py index 7ec46f2..243ff39 100644 --- a/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py +++ b/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py
@@ -1149,7 +1149,8 @@ main.scapyNames = scapyNames else: main.scapyNames = main.params[ 'SCAPY' ][ 'HOSTNAMES' ].split( ',' ) - main.scapyHosts = [] + if not hasattr( main, "scapyHosts" ): + main.scapyHosts = [] for scapyName in main.scapyNames: main.Scapy.createHostComponent( scapyName ) scapyHandle = getattr( main, scapyName )