From 160cb06775d51da89fb10b083850ddf42c96b11b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 12 Jun 2020 16:03:56 +0200 Subject: interfaces: base: speedup address test Instead of calling commit() on every interface we add an address, rather configure all addresses first and then commit() in a single shot! --- scripts/cli/base_interfaces_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/cli/base_interfaces_test.py') diff --git a/scripts/cli/base_interfaces_test.py b/scripts/cli/base_interfaces_test.py index 1fa5472d5..3f8a74254 100644 --- a/scripts/cli/base_interfaces_test.py +++ b/scripts/cli/base_interfaces_test.py @@ -78,7 +78,7 @@ class BasicInterfaceTest: for option in self._options.get(intf, []): self.session.set(self._base_path + [intf] + option.split()) - self.session.commit() + self.session.commit() # Validate address for intf in self._interfaces: -- cgit v1.2.3