From d7ae866ec5221b42bc9bea5b40dd7f7c0c4d78bd Mon Sep 17 00:00:00 2001 From: L6NqLW <64205544+L6NqLW@users.noreply.github.com> Date: Thu, 28 May 2020 17:42:38 +0200 Subject: ethernet: T2514: add warning when changing mac for bond member --- src/conf_mode/interfaces-ethernet.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 -- cgit v1.2.3