Fix remote packet capture for Dynamips.

This commit is contained in:
grossmj
2019-04-01 20:58:18 +07:00
parent 4cc5dbc228
commit a17119187b
16 changed files with 76 additions and 49 deletions

View File

@ -392,8 +392,7 @@ class TraceNGVM(BaseNode):
if nio.capturing:
raise TraceNGError("Packet capture is already activated on port {port_number}".format(port_number=port_number))
nio.startPacketCapture(output_file)
nio.start_packet_capture(output_file)
if self.ubridge:
await self._ubridge_send('bridge start_capture {name} "{output_file}"'.format(name="TraceNG-{}".format(self._id),
output_file=output_file))
@ -412,8 +411,8 @@ class TraceNGVM(BaseNode):
nio = self.get_nio(port_number)
if not nio.capturing:
return
nio.stopPacketCapture()
nio.stop_packet_capture()
if self.ubridge:
await self._ubridge_send('bridge stop_capture {name}'.format(name="TraceNG-{}".format(self._id)))