Example #1
0
    def create_pg_interfaces(cls, interfaces):
        """
        Create packet-generator interfaces

        :param interfaces: iterable indexes of the interfaces

        """
        result = []
        for i in interfaces:
            intf = VppPGInterface(cls, i)
            setattr(cls, intf.name, intf)
            result.append(intf)
        cls.pg_interfaces = result
        return result
Example #2
0
 def create_ndp_req(self):
     packet = VppPGInterface.create_ndp_req(self)
     return packet
Example #3
0
 def create_ndp_req(self):
     packet = VppPGInterface.create_ndp_req(self)
     return self.add_dot1_layer(packet)
Example #4
0
 def create_ndp_req(self, addr=None):
     packet = VppPGInterface.create_ndp_req(self, addr)
     return packet
Example #5
0
 def create_ndp_req(self):
     packet = VppPGInterface.create_ndp_req(self)
     return packet
Example #6
0
 def create_ndp_req(self):
     packet = VppPGInterface.create_ndp_req(self)
     return self.add_dot1_layer(packet)