diff options
author | Jernej Jakob <jernej.jakob@gmail.com> | 2020-05-05 16:04:54 +0200 |
---|---|---|
committer | Jernej Jakob <jernej.jakob@gmail.com> | 2020-05-05 17:25:58 +0200 |
commit | 0a3147631094dba44523bd439586086c1bf6a93b (patch) | |
tree | 02676c61f1f20dbb2e908cd73769f31191610b83 | |
parent | 312cffce31cf3a411a87559bf99f78cde5facd60 (diff) | |
download | vyos-1x-0a3147631094dba44523bd439586086c1bf6a93b.tar.gz vyos-1x-0a3147631094dba44523bd439586086c1bf6a93b.zip |
configdict: T2427: clarify code comments
-rw-r--r-- | python/vyos/configdict.py | 5 |
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 |