Commit e991c65
committed
CP-312082: [xapi] Push LLDP config to networkd in Nm.bring_pif_up
When bringing up the NIC of a managed physical PIF, build the networkd LLDP
record from the XAPI database and include it in the interface configuration
passed to networkd, replacing the previous hard-coded 'lldp = None'.
The effective state resolves the configuration matrix: PIF.lldp_mode of
enabled/disabled overrides pool.lldp_enabled, and 'enabled' additionally sets
'force' so networkd overrides its NIC-driver blocklist. The chassis id, system
name and description are taken from the host, and the multicast address from
pool.lldp_multicast_address.
For bond members, the bond master is plugged then the lldp settings of physical
PIFs can take effect.
Signed-off-by: Changlei Li <changlei.li@citrix.com>1 parent 8a8ad43 commit e991c65
3 files changed
Lines changed: 60 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
122 | 158 | | |
123 | 159 | | |
124 | 160 | | |
| |||
144 | 180 | | |
145 | 181 | | |
146 | 182 | | |
| 183 | + | |
147 | 184 | | |
148 | 185 | | |
149 | 186 | | |
| |||
436 | 473 | | |
437 | 474 | | |
438 | 475 | | |
| 476 | + | |
439 | 477 | | |
440 | 478 | | |
441 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
964 | | - | |
965 | | - | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
966 | 967 | | |
967 | 968 | | |
968 | 969 | | |
969 | 970 | | |
970 | | - | |
| 971 | + | |
971 | 972 | | |
972 | 973 | | |
973 | 974 | | |
974 | 975 | | |
975 | 976 | | |
976 | 977 | | |
977 | 978 | | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
978 | 989 | | |
979 | 990 | | |
980 | 991 | | |
981 | 992 | | |
| 993 | + | |
982 | 994 | | |
983 | | - | |
| 995 | + | |
984 | 996 | | |
985 | 997 | | |
986 | 998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3860 | 3860 | | |
3861 | 3861 | | |
3862 | 3862 | | |
3863 | | - | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
3864 | 3866 | | |
3865 | 3867 | | |
3866 | 3868 | | |
3867 | 3869 | | |
3868 | | - | |
3869 | | - | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
3870 | 3873 | | |
3871 | 3874 | | |
3872 | 3875 | | |
| |||
0 commit comments