Beispiel #1
0
#!/opt/ActivePython-2.7/bin/python

import test_vlan as vlan

self.log("info", "This is script2.py")
self.log("info", "portList %s" % self.params["portList"])

try:
    self.log("info", "ixiaChassisIp: %s" % self.params["ixiaChassisIp"])
except Exception, e:
    self.log("warning", "No self param: %s" % 'self.params["ixiaChassisIp"]')

try:
    self.log("info", "global variable ixiaChassisIp: %s" % ixiaChassisIp)
except Exception, e:
    self.log("warning", "No such global variable ixiaChassisIp")


vlan.setup(self)
vlan.test_vlan_1(self)
vlan.test_vlan_2(self)
vlan.test_vlan_3(self)
vlan.teardown(self)
Beispiel #2
0
#!/opt/ActivePython-2.7/bin/python

import test_vlan as vlan

self.log('info', 'This is script2.py')
self.log('info', '--- params %s' % self.params)
self.log('info', 'ixiaChassisIp: %s' % self.params['ixiaChassisIp'])

if vlan.setup(self):
    self.log('error', 'Vlan setup failed')

if vlan.test_vlan_1(self):
    self.log('error', 'Vlan test_vlan_1 failed')

if vlan.test_vlan_2(self):
    self.log('error', 'vlan test_vlan_2 failed')

if vlan.test_vlan_3(self):
    self.log('error', 'vlan test_vlan_3 failed')

if vlan.teardown(self):
    self.log('error', 'vlan teardown failed')