diff options
author | L6NqLW <64205544+L6NqLW@users.noreply.github.com> | 2020-05-28 17:42:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 17:42:38 +0200 |
commit | d7ae866ec5221b42bc9bea5b40dd7f7c0c4d78bd (patch) | |
tree | ff7ce752bf36df60a7b05bceb99526f85f89a3a6 /src | |
parent | 9ff733fc5336444fd1806b9008450692f66ffc8d (diff) | |
download | vyos-1x-d7ae866ec5221b42bc9bea5b40dd7f7c0c4d78bd.tar.gz vyos-1x-d7ae866ec5221b42bc9bea5b40dd7f7c0c4d78bd.zip |
ethernet: T2514: add warning when changing mac for bond member
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-ethernet.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-ethernet.py b/src/conf_mode/interfaces-ethernet.py index 9ba2f9a81..bbee3c901 100755 --- a/src/conf_mode/interfaces-ethernet.py +++ b/src/conf_mode/interfaces-ethernet.py @@ -170,6 +170,10 @@ def verify(eth): f'Interface "{eth["intf"]}" cannot be member of VRF "{eth["vrf"]}" ' f'and "{memberof}" at the same time!')) + if eth['mac'] and eth['is_bond_member']: + print('WARNING: "mac {0}" command will be ignored because {1} is a part of {2}'\ + .format(eth['mac'], eth['intf'], eth['is_bond_member'])) + # use common function to verify VLAN configuration verify_vlan_config(eth) return None |