summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2020-05-05 16:04:54 +0200
committerJernej Jakob <jernej.jakob@gmail.com>2020-05-05 17:25:58 +0200
commit0a3147631094dba44523bd439586086c1bf6a93b (patch)
tree02676c61f1f20dbb2e908cd73769f31191610b83
parent312cffce31cf3a411a87559bf99f78cde5facd60 (diff)
downloadvyos-1x-0a3147631094dba44523bd439586086c1bf6a93b.tar.gz
vyos-1x-0a3147631094dba44523bd439586086c1bf6a93b.zip
configdict: T2427: clarify code comments
-rw-r--r--python/vyos/configdict.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 666497389..5ca369f66 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -375,8 +375,7 @@ def add_to_dict(conf, disabled, ifdict, section, key):
# the section to parse for vlan
sections = []
- # Determine interface addresses (currently effective) - to determine which
- # address is no longer valid and needs to be removed from the bond
+ # determine which interfaces to add or remove based on disable state
if disabled == disable.both:
# was and is still disabled
ifdict[f'{key}_remove'] = []
@@ -389,7 +388,7 @@ def add_to_dict(conf, disabled, ifdict, section, key):
sections = active
else:
# normal change
- # get vif-s interfaces (currently effective) - to determine which vif-s
+ # get interfaces (currently effective) - to determine which
# interface is no longer present and needs to be removed
ifdict[f'{key}_remove'] = list_diff(effect, active)
sections = active