Exemple #1
0
    def connectTo(self, Node):
        "Fetch next available port number on destination node and generate a remote interface name"
        remoteCandidIntfName = Node.name + "-eth" + str(Node.newPort())
        "Pass the remote intf name to generate a link"
        self.createLink(remoteCandidIntfName)
        "Connect the other end of the created link to the passed mininet node"
        """
		if type(Node) is (Node or Host or OVSSwitch):
	             _intf = Intf( remoteCandidIntfName, node=Node )
		     return 	          
                #Node.incrIfIndex()
		"""
        if isinstance(Node, NFVMiddlebox):
            Node.incrIfIndex()
        else:
            _intf = Intf(remoteCandidIntfName, node=Node)
        return
Exemple #2
0
	def connectTo(self,Node):
		"Fetch next available port number on destination node and generate a remote interface name"
		remoteCandidIntfName = Node.name +"-eth" + str(Node.newPort())
		"Pass the remote intf name to generate a link"
		self.createLink(remoteCandidIntfName)
		"Connect the other end of the created link to the passed mininet node"
		"""
		if type(Node) is (Node or Host or OVSSwitch):
	             _intf = Intf( remoteCandidIntfName, node=Node )
		     return 	          
                #Node.incrIfIndex()
		"""
		if isinstance(Node, NFVMiddlebox):
	             Node.incrIfIndex()
		else:
                     _intf = Intf( remoteCandidIntfName, node=Node )
		return