summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-12 16:03:56 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-12 16:03:59 +0200
commit160cb06775d51da89fb10b083850ddf42c96b11b (patch)
treead419856f5f2bbed2c86aac3e28118d1245d1ef6 /scripts
parent8417f55135979be657ae0a3d3e010104c73fc400 (diff)
downloadvyos-1x-160cb06775d51da89fb10b083850ddf42c96b11b.tar.gz
vyos-1x-160cb06775d51da89fb10b083850ddf42c96b11b.zip
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!
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cli/base_interfaces_test.py2
1 files changed, 1 insertions, 1 deletions
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: