summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKroy <kroy@kroy.io>2021-08-12 18:02:00 -0500
committerKroy <kroy@kroy.io>2021-08-12 18:02:00 -0500
commitef694deb9a620ab4f81e08ac2bf6228404aaac36 (patch)
treef9fa9fb950376a5cf5f40c7ea12cd4274918ce9c /src
parent7e52a7079afb522d1456833023ad58fa8b05e880 (diff)
downloadvyos-1x-ef694deb9a620ab4f81e08ac2bf6228404aaac36.tar.gz
vyos-1x-ef694deb9a620ab4f81e08ac2bf6228404aaac36.zip
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!')