diff options
Diffstat (limited to 'vnet/vnet/interface.c')
-rw-r--r-- | vnet/vnet/interface.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vnet/vnet/interface.c b/vnet/vnet/interface.c index 6c8823f14bc..9189a4185d8 100644 --- a/vnet/vnet/interface.c +++ b/vnet/vnet/interface.c @@ -363,6 +363,15 @@ vnet_sw_interface_set_flags_helper (vnet_main_t * vnm, u32 sw_if_index, u32 flag } } + /* Donot change state for slave link of bonded interfaces */ + if (si->flags & VNET_SW_INTERFACE_FLAG_BOND_SLAVE) + { + error = clib_error_return + (0, "not allowed as %U belong to a BondEthernet interface", + format_vnet_sw_interface_name, vnm, si); + goto done; + } + /* Already in the desired state? */ if ((si->flags & mask) == flags) goto done; |