Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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))
Exemplo n.º 4
0
 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))