Esempio n. 1
0
 def configureRoutedControlNetwork( self, ip='192.168.123.1',
                                    PrefixLen=16 ):
     """Configure a routed control network on controller and switches.
        For use with the user datapath only right now."""
     self.snum = ipParse( ip )
     self.attachNodesToRoutedControlNetwork(  nodes=self.switches , cip=ip, prefixLen=PrefixLen)
     self.attachNodesToRoutedControlNetwork(  nodes=self.ees , cip=ip, prefixLen=PrefixLen)
Esempio n. 2
0
 def configureRoutedControlNetwork(self, ip='192.168.123.1', PrefixLen=16):
     """Configure a routed control network on controller and switches.
        For use with the user datapath only right now."""
     self.snum = ipParse(ip)
     self.attachNodesToRoutedControlNetwork(nodes=self.switches,
                                            cip=ip,
                                            prefixLen=PrefixLen)
     self.attachNodesToRoutedControlNetwork(nodes=self.ees,
                                            cip=ip,
                                            prefixLen=PrefixLen)
Esempio n. 3
0
    def configureSwitchedControlNetwork( self, ip='192.168.123.1',
                                       PrefixLen=16 ):
        """Configure a switched control network on controller and switches.
           For use with the user datapath only right now."""
        self.snum = ipParse( ip )

        ctlNetctl = self.addController( 'ctlNetctl', port=6634)
#        ctlNetctl = self.RemoteController( 'ctlNetctl', port=6634)
        
        s0 = self.addSwitch('s0')
        MySwitch=s0
#        self.attachNodesToSwitchedControlNetwork(  nodes=self.switches , cip=ip, prefixLen=PrefixLen)
        self.attachNodesToSwitchedControlNetwork(  nodes=self.ees , switch=MySwitch, cip=ip, prefixLen=PrefixLen)

        ctlNetctl.start()
        s0.start( [ ctlNetctl ] )
Esempio n. 4
0
    def configureSwitchedControlNetwork(self,
                                        ip='192.168.123.1',
                                        PrefixLen=16):
        """Configure a switched control network on controller and switches.
           For use with the user datapath only right now."""
        self.snum = ipParse(ip)

        ctlNetctl = self.addController('ctlNetctl', port=6634)
        #        ctlNetctl = self.RemoteController( 'ctlNetctl', port=6634)

        s0 = self.addSwitch('s0')
        MySwitch = s0
        #        self.attachNodesToSwitchedControlNetwork(  nodes=self.switches , cip=ip, prefixLen=PrefixLen)
        self.attachNodesToSwitchedControlNetwork(nodes=self.ees,
                                                 switch=MySwitch,
                                                 cip=ip,
                                                 prefixLen=PrefixLen)

        ctlNetctl.start()
        s0.start([ctlNetctl])