def send_packet(self, dest_addr): packet = build_nsh_trace_header(self.vxlan_header_values, self.base_header_values, self.ctx_header_values, self.trace_req_header_values) # logger.info("Sending Trace packet to: %s", remote_sff_ip) self.transport.sendto(packet, dest_addr)
def send_packet(self, dest_addr): packet = build_nsh_trace_header(self.vxlan_header_values, self.base_header_values, self.ctx_header_values, self.trace_req_header_values) # logger.info("Sending Trace packet to: %s", remote_sff_ip) self.transport.sendto(packet, dest_addr)
def connection_made(self, transport): self.transport = transport packet = build_nsh_trace_header(self.vxlan_header_values, self.base_header_values, self.ctx_header_values, self.trace_req_header_values) # udp_socket = self.transport.get_extra_info('socket') print("Sending Trace packet to Service Path and Service Index: ({0}, {1})".format( self.base_header_values.service_path, self.base_header_values.service_index)) logger.debug("Trace packet: %s", binascii.hexlify(packet)) print("Trace response...") self.transport.sendto(packet, (self.dest_addr, self.dest_port))
def connection_made(self, transport): self.transport = transport packet = build_nsh_trace_header(self.vxlan_header_values, self.base_header_values, self.ctx_header_values, self.trace_req_header_values) # udp_socket = self.transport.get_extra_info('socket') print( "Sending Trace packet to Service Path and Service Index: ({0}, {1})" .format(self.base_header_values.service_path, self.base_header_values.service_index)) logger.debug("Trace packet: %s", binascii.hexlify(packet)) print("Trace response...") self.transport.sendto(packet, (self.dest_addr, self.dest_port))