From dd89b09f842a84980d02b4d8a1469f403e4e6f22 Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 23 Nov 2017 10:04:32 +0700 Subject: [PATCH] Fix error when updating packet filter on stopped Docker link. Fixes #1229. --- gns3server/compute/docker/docker_vm.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gns3server/compute/docker/docker_vm.py b/gns3server/compute/docker/docker_vm.py index 4fcab715..a059af78 100644 --- a/gns3server/compute/docker/docker_vm.py +++ b/gns3server/compute/docker/docker_vm.py @@ -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):