def setUp(self):
     self.cfg = settings.readConfig('topo.cfg')
     self.host1 = telnet_con.TelNode(self.cfg['host1']['con_ip'],
                                     self.cfg['host1']['con_port'])
     self.host2 = telnet_con.TelNode(self.cfg['host2']['con_ip'],
                                     self.cfg['host2']['con_port'])
     self.user = "******"
     self.password = "******"
 def setUp(self):
     print("start testing")
     self.cfg = settings.readConfig('topo.cfg')
     self.ovs1 = telnet_con.TelNode(
         self.cfg['ovs1']['con_ip'], self.cfg['ovs1']['con_port'])
     self.ovs2 = telnet_con.TelNode(
         self.cfg['ovs2']['con_ip'], self.cfg['ovs2']['con_port'])
     self.ovs3 = telnet_con.TelNode(
         self.cfg['ovs3']['con_ip'], self.cfg['ovs3']['con_port'])
     self.user = "******"
     self.password = "******"
    def setUp(self):
        self.cfg = settings.readConfig('topo.cfg')
        self.django_server = telnet_con.TelNode(
            self.cfg['django_server']['con_ip'],
            self.cfg['django_server']['con_port'])
        self.wp_server = telnet_con.TelNode(self.cfg['wp_server']['con_ip'],
                                            self.cfg['wp_server']['con_port'])
        self.wp_db = telnet_con.TelNode(self.cfg['wp_db']['con_ip'],
                                        self.cfg['wp_db']['con_port'])
        self.build_server = telnet_con.TelNode(
            self.cfg['build_server']['con_ip'],
            self.cfg['build_server']['con_port'])
        self.django_db = telnet_con.TelNode(self.cfg['django_db']['con_ip'],
                                            self.cfg['django_db']['con_port'])

        self.user = "******"
        self.password = "******"
Esempio n. 4
0
from confignodes import testclass

testclass.testFunc()

from helpers import telnet_con

t = telnet_con.TelNode("test", "test")