mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-24 15:58:08 +00:00
Fixes packet capture for devices when spaces are present in the output file.
This commit is contained in:
parent
550cc7f508
commit
3528efb1e0
@ -374,7 +374,7 @@ class ATMSwitch(Device):
|
|||||||
raise DynamipsError("Port {} has already a filter applied".format(port_number))
|
raise DynamipsError("Port {} has already a filter applied".format(port_number))
|
||||||
|
|
||||||
yield from nio.bind_filter("both", "capture")
|
yield from nio.bind_filter("both", "capture")
|
||||||
yield from nio.setup_filter("both", "{} {}".format(data_link_type, output_file))
|
yield from nio.setup_filter("both", '{} "{}"'.format(data_link_type, output_file))
|
||||||
|
|
||||||
log.info('ATM switch "{name}" [{id}]: starting packet capture on port {port}'.format(name=self._name,
|
log.info('ATM switch "{name}" [{id}]: starting packet capture on port {port}'.format(name=self._name,
|
||||||
id=self._id,
|
id=self._id,
|
||||||
|
@ -155,7 +155,7 @@ class EthernetHub(Bridge):
|
|||||||
raise DynamipsError("Port {} has already a filter applied".format(port_number))
|
raise DynamipsError("Port {} has already a filter applied".format(port_number))
|
||||||
|
|
||||||
yield from nio.bind_filter("both", "capture")
|
yield from nio.bind_filter("both", "capture")
|
||||||
yield from nio.setup_filter("both", "{} {}".format(data_link_type, output_file))
|
yield from nio.setup_filter("both", '{} "{}"'.format(data_link_type, output_file))
|
||||||
|
|
||||||
log.info('Ethernet hub "{name}" [{id}]: starting packet capture on port {port}'.format(name=self._name,
|
log.info('Ethernet hub "{name}" [{id}]: starting packet capture on port {port}'.format(name=self._name,
|
||||||
id=self._id,
|
id=self._id,
|
||||||
|
@ -305,7 +305,7 @@ class EthernetSwitch(Device):
|
|||||||
raise DynamipsError("Port {} has already a filter applied".format(port_number))
|
raise DynamipsError("Port {} has already a filter applied".format(port_number))
|
||||||
|
|
||||||
yield from nio.bind_filter("both", "capture")
|
yield from nio.bind_filter("both", "capture")
|
||||||
yield from nio.setup_filter("both", "{} {}".format(data_link_type, output_file))
|
yield from nio.setup_filter("both", '{} "{}"'.format(data_link_type, output_file))
|
||||||
|
|
||||||
log.info('Ethernet switch "{name}" [{id}]: starting packet capture on port {port}'.format(name=self._name,
|
log.info('Ethernet switch "{name}" [{id}]: starting packet capture on port {port}'.format(name=self._name,
|
||||||
id=self._id,
|
id=self._id,
|
||||||
|
@ -280,7 +280,7 @@ class FrameRelaySwitch(Device):
|
|||||||
raise DynamipsError("Port {} has already a filter applied".format(port_number))
|
raise DynamipsError("Port {} has already a filter applied".format(port_number))
|
||||||
|
|
||||||
yield from nio.bind_filter("both", "capture")
|
yield from nio.bind_filter("both", "capture")
|
||||||
yield from nio.setup_filter("both", "{} {}".format(data_link_type, output_file))
|
yield from nio.setup_filter("both", '{} "{}"'.format(data_link_type, output_file))
|
||||||
|
|
||||||
log.info('Frame relay switch "{name}" [{id}]: starting packet capture on port {port}'.format(name=self._name,
|
log.info('Frame relay switch "{name}" [{id}]: starting packet capture on port {port}'.format(name=self._name,
|
||||||
id=self._id,
|
id=self._id,
|
||||||
|
Loading…
Reference in New Issue
Block a user