The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/pylxd/pull/410
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 458ba41f7d9634f673f87db80321821f2c8b724e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Sun, 26 Jul 2020 20:30:05 -0400 Subject: [PATCH] test_networks: Make hwaddr conditional on extension MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- integration/test_networks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration/test_networks.py b/integration/test_networks.py index 1b6838ca..1db1d30e 100644 --- a/integration/test_networks.py +++ b/integration/test_networks.py @@ -63,7 +63,6 @@ def test_create_with_parameters(self): kwargs = { 'name': 'eth10', 'config': { - 'bridge.hwaddr': '00:16:3e:12:34:56', 'ipv4.address': '10.10.10.1/24', 'ipv4.nat': 'true', 'ipv6.address': 'none', @@ -73,6 +72,9 @@ def test_create_with_parameters(self): 'description': 'network description', } + if self.client.has_api_extension('network_hwaddr'): + kwargs['config']['bridge.hwaddr'] = '00:16:3e:12:34:56' + network = self.client.networks.create(**kwargs) self.addCleanup(self.delete_network, kwargs['name'])
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel