diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-12 16:03:56 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-12 16:03:59 +0200 |
commit | 160cb06775d51da89fb10b083850ddf42c96b11b (patch) | |
tree | ad419856f5f2bbed2c86aac3e28118d1245d1ef6 /scripts/cli | |
parent | 8417f55135979be657ae0a3d3e010104c73fc400 (diff) | |
download | vyos-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/cli')
-rw-r--r-- | scripts/cli/base_interfaces_test.py | 2 |
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: |