Commit 55ad492
committed
CP-312082: [xapi] Only re-plug attached PIFs when applying LLDP
Apply the LLDP change to networkd only for PIFs that are currently
attached; an unplugged PIF has its DB value updated and picks up
the setting the next time it is brought up. This avoids bringing up
interfaces that were deliberately down as a side effect of a pure
LLDP configuration change.
PIF.set_lldp_mode re-plugs the target (self, or the bond master for
a bond member) only if it is currently_attached; pool.set_lldp_enabled
re-plugs only currently-attached standalone physical PIFs and bond
masters.
Signed-off-by: Changlei Li <changlei.li@citrix.com>1 parent e991c65 commit 55ad492
2 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
| 993 | + | |
| 994 | + | |
993 | 995 | | |
994 | | - | |
995 | | - | |
996 | | - | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
997 | 1000 | | |
998 | 1001 | | |
999 | 1002 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3862 | 3862 | | |
3863 | 3863 | | |
3864 | 3864 | | |
3865 | | - | |
| 3865 | + | |
| 3866 | + | |
3866 | 3867 | | |
3867 | 3868 | | |
3868 | 3869 | | |
3869 | 3870 | | |
| 3871 | + | |
3870 | 3872 | | |
3871 | 3873 | | |
3872 | 3874 | | |
| |||
0 commit comments