Commit 1b66afd
NOS-6585..NOS-6615: fboss2 config/delete protocol bgp neighbor commands
Adds `config protocol bgp neighbor <ip-address> [<attribute> <value> ...]`
and `delete protocol bgp neighbor <ip-address>` — the first per-peer BGP
config family, beneath the `protocol bgp` grouping node.
- neighbor dispatcher keyed by peer address, writing bgp_config.BgpPeer
through the typed ConfigSession. Attributes cover the peer identity
(remote/local ASN, description, peer-tag, peer-group), policy bindings
(ingress/egress policy), session tunables (timers, route limits,
next-hop, add-path, RR client, and the rest of the documented set), and
the sheet-documented attributes bgpd does not support, which are
rejected with an explanatory message rather than staged.
- delete removes the peer by address.
- ConfigBgpTestBase restores the committed BGP config after every test, so
a failed run cannot leave a device carrying test config; commit-path
integration tests verify each value through bgpd's own getRunningConfig
RPC rather than only the staged file.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 67cae8c commit 1b66afd
132 files changed
Lines changed: 9872 additions & 4125 deletions
File tree
- cmake
- fboss/cli/fboss2
- commands
- config/protocol/bgp
- neighbor
- peer
- delete/protocol/bgp
- neighbor
- show
- acl
- agent
- aggregateport
- arp
- bgp
- summary
- table
- updategroup
- cpuport
- dsfnodes
- dsf/subscription
- example
- fabric
- inputbalance
- monitoring
- reachability
- topology
- flowlet
- hardware
- host
- hwagent
- interface
- capabilities
- counters
- fec
- ber
- histogram
- tail
- uncorrectable
- mka
- errors
- flaps
- phymap
- phy
- prbs
- capabilities
- state
- stats
- status
- traffic
- lldp
- mac
- mirror
- mpls
- mysid
- ndp
- nexthopgroups
- port
- product
- rif
- route
- systemport
- teflow
- transceiver
- docs
- test
- config
- integration_test
- tools
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
| 870 | + | |
870 | 871 | | |
| 872 | + | |
871 | 873 | | |
872 | 874 | | |
873 | 875 | | |
874 | 876 | | |
875 | 877 | | |
876 | 878 | | |
| 879 | + | |
| 880 | + | |
877 | 881 | | |
878 | 882 | | |
879 | 883 | | |
| |||
912 | 916 | | |
913 | 917 | | |
914 | 918 | | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | 919 | | |
968 | 920 | | |
969 | 921 | | |
| |||
1056 | 1008 | | |
1057 | 1009 | | |
1058 | 1010 | | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
1059 | 1015 | | |
1060 | 1016 | | |
1061 | 1017 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1098 | 1098 | | |
1099 | 1099 | | |
1100 | 1100 | | |
| 1101 | + | |
1101 | 1102 | | |
1102 | 1103 | | |
1103 | 1104 | | |
| |||
1117 | 1118 | | |
1118 | 1119 | | |
1119 | 1120 | | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | 1121 | | |
1147 | 1122 | | |
1148 | 1123 | | |
| |||
1189 | 1164 | | |
1190 | 1165 | | |
1191 | 1166 | | |
| 1167 | + | |
| 1168 | + | |
1192 | 1169 | | |
1193 | 1170 | | |
1194 | 1171 | | |
| |||
1239 | 1216 | | |
1240 | 1217 | | |
1241 | 1218 | | |
| 1219 | + | |
1242 | 1220 | | |
| 1221 | + | |
1243 | 1222 | | |
1244 | 1223 | | |
1245 | 1224 | | |
| 1225 | + | |
1246 | 1226 | | |
1247 | 1227 | | |
1248 | 1228 | | |
| |||
1258 | 1238 | | |
1259 | 1239 | | |
1260 | 1240 | | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
1279 | 1241 | | |
1280 | 1242 | | |
1281 | 1243 | | |
| |||
1323 | 1285 | | |
1324 | 1286 | | |
1325 | 1287 | | |
| 1288 | + | |
| 1289 | + | |
1326 | 1290 | | |
1327 | 1291 | | |
1328 | 1292 | | |
| |||
0 commit comments