summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-08-12 19:17:27 -0500
committerGitHub <noreply@github.com>2021-08-12 19:17:27 -0500
commit986dcd3a581085eb22207985cba03e03ad84f3d1 (patch)
treef9fa9fb950376a5cf5f40c7ea12cd4274918ce9c /src
parent7e52a7079afb522d1456833023ad58fa8b05e880 (diff)
parentef694deb9a620ab4f81e08ac2bf6228404aaac36 (diff)
downloadvyos-1x-986dcd3a581085eb22207985cba03e03ad84f3d1.tar.gz
vyos-1x-986dcd3a581085eb22207985cba03e03ad84f3d1.zip
Merge pull request #966 from kroy-the-rabbit/T3749
T3749: Moving some counters into the proper loop
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/containers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/containers.py b/src/conf_mode/containers.py
index 21b47f42a..7544bd840 100755
--- a/src/conf_mode/containers.py
+++ b/src/conf_mode/containers.py
@@ -142,9 +142,9 @@ def verify(container):
# Add new network
if 'network' in container:
- v4_prefix = 0
- v6_prefix = 0
for network, network_config in container['network'].items():
+ v4_prefix = 0
+ v6_prefix = 0
# If ipv4-prefix not defined for user-defined network
if 'prefix' not in network_config:
raise ConfigError(f'prefix for network "{net}" must be defined!')