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
def create_ndp_req(self): packet = VppPGInterface.create_ndp_req(self) return packet
def create_ndp_req(self): packet = VppPGInterface.create_ndp_req(self) return self.add_dot1_layer(packet)
def create_ndp_req(self, addr=None): packet = VppPGInterface.create_ndp_req(self, addr) return packet