diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-01-21 17:23:50 +0000 |
|---|---|---|
| committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-01-21 17:23:50 +0000 |
| commit | 63bd816bdfcc041d10941dab51a9a0792218ef42 (patch) | |
| tree | 8d938dc051f959326df6080ed9de4eb35451eff7 /src | |
| parent | f1316bbcf852dfc29bb29cb5c4203eb4b625bc15 (diff) | |
| download | vyos-1x-63bd816bdfcc041d10941dab51a9a0792218ef42.tar.gz vyos-1x-63bd816bdfcc041d10941dab51a9a0792218ef42.zip | |
bonding: set interface state up after adding
By default VPP creates interface via API with the 'down' state.
Add methods to set interface state UP/DOWN.
It probably should reuse the common Class in the future.
We do not have classes for interface (vpp) state settings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/conf_mode/vpp_interfaces_bonding.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/vpp_interfaces_bonding.py b/src/conf_mode/vpp_interfaces_bonding.py index e1919e946..0ec4f7151 100644 --- a/src/conf_mode/vpp_interfaces_bonding.py +++ b/src/conf_mode/vpp_interfaces_bonding.py @@ -202,6 +202,8 @@ def apply(config): for member in members: i.add_member(interface=member) + i.set_state_up() + call_dependents() return None |
