def setupNet(self): mytopo = myTopo(hsts=NUM_HOSTS_PER_SWITCH, sws=NUM_OF_SWITCHES, hopts=self.getHostOpts(), sopts=self.getSwitchOpts()) self.net = Mininet(topo=mytopo, switch=VsiOpenSwitch, host=None, link=None, controller=None, build=True) self.SWITCH_IP = get_switch_ip(self.net.switches[0])
def setupNet(self): host_opts = self.getHostOpts() switch_opts = self.getSwitchOpts() ecmp_topo = myTopo(hsts=NUM_HOSTS_PER_SWITCH, sw=NUM_OF_SWITCHES, hopts=host_opts, sopts=switch_opts) self.net = Mininet(ecmp_topo, switch=VsiOpenSwitch, host=Host, link=OpsVsiLink, controller=None, build=True) self.SWITCH_IP = get_switch_ip(self.net.switches[0]) self.url = '/rest/v1/system/interfaces/bridge_normal' self.cookie_header = None
def setupNet(self): self.net = Mininet(topo=myTopo(hsts=NUM_HOSTS_PER_SWITCH, sws=NUM_OF_SWITCHES, hopts=self.getHostOpts(), sopts=self.getSwitchOpts()), switch=VsiOpenSwitch, host=None, link=None, controller=None, build=True) self.path = "/rest/v1/system/bridges" self.switch_ip = get_switch_ip(self.net.switches[0]) self.vlan_id = 2 self.vlan_name = "fake_vlan" self.vlan_path = "%s/%s/vlans" % (self.path, DEFAULT_BRIDGE) self.vlan = "%s/%s/vlans/%s" % (self.path, DEFAULT_BRIDGE, self.vlan_name) self.SWITCH_IP = get_switch_ip(self.net.switches[0]) self.cookie_header = None
def setupNet(self): self.net = Mininet(topo=myTopo(hsts=NUM_HOSTS, sws=NUM_OF_SWITCHES, hopts=self.getHostOpts(), sopts=self.getSwitchOpts()), switch=VsiOpenSwitch, host=OpsVsiHost, link=OpsVsiLink, ipBase="10.0.0.0/8", controller=None, build=True) self.SWITCH_IP1 = get_switch_ip(self.net.switches[0]) self.SWITCH_IP2 = get_switch_ip(self.net.switches[1]) self.PATH = "/rest/v1/system" self.PATH_PORTS = self.PATH + "/ports" self.PATH_INT = self.PATH + "/interfaces" self.PATH_VRF_DEFAULT = self.PATH + "/vrfs/vrf_default" self.PATH_BRIDGE_NORMAL = self.PATH + "/bridges/bridge_normal" self.cookie_header = None
def setupNet(self): self.net = Mininet(topo=myTopo(hsts=NUM_HOSTS_PER_SWITCH, sws=NUM_OF_SWITCHES, hopts=self.getHostOpts(), sopts=self.getSwitchOpts()), switch=VsiOpenSwitch, host=None, link=None, controller=None, build=True) self.SWITCH_IP = get_switch_ip(self.net.switches[0]) self.PATH = "/rest/v1/system/vrfs/vrf_default/routes" self.cookie_header = None
def setupNet(self): host_opts = self.getHostOpts() switch_opts = self.getSwitchOpts() ecmp_topo = myTopo(hsts=NUM_HOSTS_PER_SWITCH, sw=NUM_OF_SWITCHES, hopts=host_opts, sopts=switch_opts) self.net = Mininet(ecmp_topo, switch=VsiOpenSwitch, host=Host, link=OpsVsiLink, controller=None, build=True) self.SWITCH_IP = get_switch_ip(self.net.switches[0]) self.path_bgp = '/rest/v1/system/vrfs/vrf_default/bgp_routers' self.path_id = '/rest/v1/system/vrfs/vrf_default/bgp_routers/6004' self.cookie_header = None
def setupNet(self): host_opts = self.getHostOpts() switch_opts = self.getSwitchOpts() ecmp_topo = myTopo(hsts=NUM_HOSTS_PER_SWITCH, sw=NUM_OF_SWITCHES, hopts=host_opts, sopts=switch_opts) self.net = Mininet(ecmp_topo, switch=VsiOpenSwitch, host=Host, link=OpsVsiLink, controller=None, build=True) self.SWITCH_IP = get_switch_ip(self.net.switches[0]) self.path_bgp = '/rest/v1/system/vrfs/vrf_default/bgp_routers' self.path_id = '/rest/v1/system/vrfs/vrf_default/bgp_routers/6004' self.cookie_header = None
def setupNet(self): host_opts = self.getHostOpts() switch_opts = self.getSwitchOpts() ecmp_topo = myTopo(hsts=NUM_HOSTS_PER_SWITCH, sw=NUM_OF_SWITCHES, hopts=host_opts, sopts=switch_opts) self.net = Mininet(ecmp_topo, switch=VsiOpenSwitch, host=Host, link=OpsVsiLink, controller=None, build=True) self.SWITCH_IP = get_switch_ip(self.net.switches[0]) self.post_url = "/rest/v1/system/vrfs/vrf_default/bgp_routers" self.delete_url = self.post_url + "/6001" self.dc_put_url = "/rest/v1/system/full-configuration?type=running" self.cookie_header = None
def setupNet(self): self.net = Mininet(topo=myTopo(hsts=NUM_HOSTS_PER_SWITCH, sws=NUM_OF_SWITCHES, hopts=self.getHostOpts(), sopts=self.getSwitchOpts()), switch=VsiOpenSwitch, host=None, link=None, controller=None, build=True) self.switch_ip = get_switch_ip(self.net.switches[0]) self.path = "/rest/v1/system/bridges/bridge_normal/vlans/" self.cookie_header = None
def setupNet(self): self.net = Mininet(topo=myTopo(hsts=NUM_HOSTS_PER_SWITCH, sws=NUM_OF_SWITCHES, hopts=self.getHostOpts(), sopts=self.getSwitchOpts()), switch=VsiOpenSwitch, host=None, link=None, controller=None, build=True) self.switch_ip = get_switch_ip(self.net.switches[0]) self.cookie_header = None self.path = "/rest/v1/system/interfaces?selector=%s;depth=1"
def setupNet(self): self.net = Mininet(topo=myTopo(hsts=NUM_HOSTS_PER_SWITCH, sws=NUM_OF_SWITCHES, hopts=self.getHostOpts(), sopts=self.getSwitchOpts()), switch=VsiOpenSwitch, host=None, link=None, controller=None, build=True) self.SWITCH_IP = get_switch_ip(self.net.switches[0]) self.PATH = "/rest/v1/system" self.PATH_PORTS = self.PATH + "/ports" self.PATH_INT = self.PATH + "/interfaces" self.cookie_header = None info("\n########## Test to Validate initial ecmp config ##########\n")
def setupNet(self): self.net = Mininet(topo=myTopo(hsts=NUM_HOSTS_PER_SWITCH, sws=NUM_OF_SWITCHES, hopts=self.getHostOpts(), sopts=self.getSwitchOpts()), switch=VsiOpenSwitch, host=None, link=None, controller=None, build=True) self.BASE_PATH = '/rest/v1' self.PORT_PATH = self.BASE_PATH + '/system/ports' self.DEFAULT_PORT_PATH = self.PORT_PATH + '/bridge_normal' self.TEST_PORT_PATH = self.PORT_PATH + '/test_port' self.CONFIG_PATH = self.BASE_PATH + '/system/full-configuration' self.LOGS_PATH = self.BASE_PATH + '/logs' self.SWITCH_IP = get_switch_ip(self.net.switches[0]) self.OPS_ADMIN_USER = '******' self.OPS_ADMIN_PASS = '******' self.cookie_header = None self.port_data = None