Initial functions to use scapy to send and receive packets
- create new "host" components
- Enter and exit the scapy prompt
- build packets frame by frame
- send packets
- start a filter
- return packets created by filter
Change-Id: I7d8e10f7df06bd861f909f4315655215ab29f7d2
diff --git a/TestON/core/teston.py b/TestON/core/teston.py
index 4bbdc3c..ce53f52 100644
--- a/TestON/core/teston.py
+++ b/TestON/core/teston.py
@@ -162,7 +162,6 @@
driver_options = {}
if 'COMPONENTS' in self.componentDictionary[component].keys():
driver_options = dict( self.componentDictionary[component]['COMPONENTS'] )
-
driver_options['name'] = component
driverName = self.componentDictionary[component]['type']
driver_options['type'] = driverName
@@ -461,7 +460,10 @@
self.cleanupFlag = True
if self.initiated:
self.logger.testSummary( self )
- for component in self.componentDictionary.keys():
+ components = self.componentDictionary
+ for component in sorted( components,
+ key=lambda item: components[item]['connect_order'],
+ reverse=True ):
try:
tempObject = vars( self )[component]
print "Disconnecting from " + str( tempObject.name ) +\