1
0
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:
grossmj 2015-02-24 23:12:09 -07:00
parent 550cc7f508
commit 3528efb1e0
4 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,