Esempio n. 1
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')



Esempio n. 2
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)
Esempio n. 3
0
 def test_vlan  (self):
     #logMsg('error', 'This is a failed case in test_vlan: %s' % testConfig(self, 'ixia.portList'))
     logError('This is a failed case in test_vlan: %s' % testConfig(self, 'ixia.portList'))
     vlan.test_vlan_1(testConfig(self, 'ixia.portList'))
     vlan.test_vlan_2()
     vlan.test_vlan_3()