1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix error when updating packet filter on stopped Docker link. Fixes #1229.

This commit is contained in:
grossmj 2017-11-23 10:04:32 +07:00
parent 7c90c513d0
commit dd89b09f84

View File

@ -749,9 +749,10 @@ class DockerVM(BaseNode):
:param nio: NIO instance to add to the adapter
"""
bridge_name = 'bridge{}'.format(adapter_number)
if bridge_name in self._bridges:
yield from self._ubridge_apply_filters(bridge_name, nio.filters)
if self.ubridge:
bridge_name = 'bridge{}'.format(adapter_number)
if bridge_name in self._bridges:
yield from self._ubridge_apply_filters(bridge_name, nio.filters)
@asyncio.coroutine
def adapter_remove_nio_binding(self, adapter_number):