Donald Sharp
2fccc9fa10
Merge pull request #13602 from opensourcerouting/fix/reuse_subgroup_process_announce_selected
...
bgpd: Refactor subgroup_announce_table() to reuse an existing helpers
2023-05-28 07:11:43 -04:00
Christian Hopps
edafa64c30
lib: enable short circuit for FE client/adapter connection
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
43f7196f3a
staticd: remove connect notify function, not needed
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
218625aa43
mgmtd: lib: cleanup error and debug messages
...
- always use IDs not a mix of IDs and pointers.
- always use PRIu64 not a mix of hex and decimal for IDs
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
42f4bb2b1a
mgmtd: lib: move INIT to after client registers
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
9405278ef2
mgmtd: send reply to SUBSCR_REQ with success or not
...
since we don't actually handle xpath subscriptions, reply with fail
if they are requested.
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
5f05ff5821
lib: add short-circuit operation between same process
...
- Use a socketpair for connection, and direct (no event loop)
message sending and handling.
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
08e8019c65
lib: mgmtd: add a identifying tag to the debug message
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
d6665cf63f
lib: dont be tricky with session_id just make it a session_id
...
- Previously was substituting a pointer to local allocated session for the
session_id returned from the FE adapter. This complexity isn't needed.
- Get rid of "%llu" format and the casts that came with it, instead use PRIu64
and the actual (uint64_t) type.
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
bcc350971f
mgmtd: fix cleanup of cleanup in FE adapter code
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
c193194905
mgmtd: eliminate unused state
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
e3cacd9643
mgmtd: cleanup/fix BE adapter deletion code
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
6dad9b53e7
mgmtd: convert BE/FE adapter to use allocated connections
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
99564edc43
lib: mgmtd: add server-side connection code to mgmt_msg
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
070c5e7a91
lib: msg: refactor common connection code from mgmtd
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
528b326616
lib: mgmt msg: add version to messages
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
fff34d7274
lib: remove write-on-off, just requeue to the back of the queue
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Christian Hopps
898499a50f
tests: python-foo assure foo[0] is on a list not dict_values object
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-28 05:13:22 -04:00
Donatas Abraitis
5773954be9
Merge pull request #13611 from donaldsharp/logger_warn
...
tests: Convert to using logger.warning
2023-05-27 20:05:50 +03:00
Donatas Abraitis
607c84f406
Merge pull request #13608 from donaldsharp/pam_wrong
...
vtysh: Give actual pam error messages
2023-05-27 15:35:25 +03:00
Pooja Jagadeesh Doijode
be469ddc88
ospfd: re-added old json hierarchy for ospf intf json
...
Re-added the old JSON hierarchy for "show ip ospf interface json"
command in addition to new, so that the scripts don't break.
Old hierarchy will be deprecated after a year.
Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
2023-05-26 17:18:04 -07:00
Donald Sharp
780a8a10e6
tests: Convert to using logger.warning
...
Use the non deprecated format.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-05-26 16:00:42 -04:00
Donald Sharp
618a9f0592
Merge pull request #13607 from LabNConsulting/chopps/fixospftest
...
tests: ospfapi: fix non-determinism in test
2023-05-26 15:09:38 -04:00
Donald Sharp
8495b425bd
vtysh: Give actual pam error messages
...
Code was was written where the pam error message put out
was the result from a previous call to the pam modules
instead of the current call to the pam module.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-05-26 07:44:11 -04:00
Donald Sharp
145acbb3bb
Merge pull request #13599 from LabNConsulting/chopps/analyze-search
...
tests: allow selecting test results by regexp match
2023-05-26 07:20:17 -04:00
Christian Hopps
054d6bdc48
tests: selecting results by regexp and ragnes, add container support
...
- Allow selecting results using a regexp
- Allow selecting results using commasep range specs
- Add support for getting and saving results from a docker/podman
container.
- update docs
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-26 06:32:24 -04:00
Donatas Abraitis
91ac217356
Merge pull request #13594 from LabNConsulting/chopps/uniconfig
...
tests: cleanup unified config and config arg
2023-05-26 13:16:06 +03:00
Christian Hopps
39e1f084b5
tests: ospfapi: fix non-determinism in test
...
fixes #13584
The test had the ospf client injecting multiple opaque LSAs on 5s pace,
but the test itself verified and advanced on an LSA in the middle of
that sequence and not the last one. Then the test reset the ospf client
and originating router. If a later injected LSA managed to get in to the
router and flooded prior to the client/router reset then the opaque data
or sequence number could differ from the expected value.
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-26 05:09:13 -04:00
Philippe Guibert
4f725062a4
bgpd: upon if event, evaluate bnc with matching nexthop
...
In BGP, when an interface event is detected or triggered,
the BNC that have a next-hop that matches the interface
are not evaluated.
The paths attached to the bnc context are evaluated in the
following situation:
- In the up event case, if at least one next-hop interface
matched the event interface.
- In the down event case, if there is no alternate next-hop
that does not use the event interface.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2023-05-26 08:35:46 +02:00
Philippe Guibert
713831fa7f
bgpd: rename bnc->ifindex to bnc->ifindex_ipv6_ll
...
This commit changes the 'ifindex' name of the bnc structure.
As it is used only to handle ipv6 link local addresses, let
us use the 'ifindex_ipv6_ll' naming to avoid any confusions
with the ifindex value of the resolved next-hops of the bnc
structure.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2023-05-26 08:33:50 +02:00
Christian Hopps
27c6bfc217
tests: cleanup the config file specification and default code
...
Also, add a new warning for missing configuration files when user is
expecting them.
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-26 00:33:07 -04:00
Igor Ryzhov
b570e9ce28
Merge pull request #13598 from opensourcerouting/fix/typo_vtysh
...
vtysh: Fix typo in warning message for `-b -f ...`
2023-05-25 17:09:41 +03:00
Donatas Abraitis
be393ade4a
bgpd: Refactor subgroup_announce_table() to reuse an existing helpers
...
Reuse subgroup_process_announce_selected(). It does the same as we do here
duplicating the logic.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-05-25 17:04:47 +03:00
David Lamparter
d76e6a58e5
ripd: embed BFD YANG models
...
The frr-ripd model has a dependency on frr-bfdd, so include it in build.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-05-25 13:47:54 +02:00
David Lamparter
dc3cea95eb
mgmtd: embed necessary YANG models
...
Listing `.c` files in `$(…_OBJECTS):` does not have the desired effect.
(Also CLEANFILES is not needed, yang/subdir.am already has yang/*.c in
CLEANFILES anyway.)
Fixes : #13600
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-05-25 13:47:44 +02:00
Donatas Abraitis
0b7d911ec3
vtysh: Fix typo in warning message for -b -f ...
...
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-05-25 10:20:53 +03:00
Pooja Jagadeesh Doijode
dac17990c4
ospfd: fix json object name for newly added fields
...
Fixed the JSON object name for "grHelloDelaySecs" and "p2mpDelayReflood"
JSON fields.
Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
2023-05-24 16:28:54 -07:00
Pooja Jagadeesh Doijode
d540f9edfc
ospfd: fix the json object name
...
Fixed the JSON object name for "drId" and "drAddress"
JSON fields
Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
2023-05-24 15:29:38 -07:00
Trey Aspelund
72eab6953d
ospfd: add oi to show ip ospf interface json
...
Currently "show ip ospf interface json" will walk all oi's bound to a
given interface, but every oi overwrites the same json keys.
This adds a new hierarchy to the json output which will allow each oi to
have its info displayed separately (instead of stomping on each other).
Before:
```
tor-11# show ip ospf interface swp2 json
{
"interfaces":{
"swp2":{
"ifUp":true,
"ifIndex":4,
"mtuBytes":9216,
"bandwidthMbit":10000,
"ifFlags":"<UP,BROADCAST,RUNNING,MULTICAST>",
"ospfEnabled":true,
"ipAddress":"100.64.3.15",
"ipAddressPrefixlen":24,
"ospfIfType":"Broadcast",
"localIfUsed":"100.64.3.255",
"area":"0.0.0.1",
"routerId":"6.0.0.15",
"networkType":"NBMA",
"cost":10,
"transmitDelaySecs":1,
"state":"Backup",
"priority":100,
"bdrId":"6.0.0.15",
"bdrAddress":"100.64.3.15",
"mcastMemberOspfAllRouters":true,
"timerMsecs":10000,
"timerDeadSecs":40,
"timerWaitSecs":40,
"timerRetransmitSecs":5,
"timerHelloInMsecs":2502,
"nbrCount":1,
"nbrAdjacentCount":1
}
}
}
```
After:
```
leaf-12# show ip ospf interface swp3 json
{
"interfaces":{
"swp3":{
"ifUp":true,
"ifIndex":5,
"mtuBytes":9216,
"bandwidthMbit":10000,
"ifFlags":"<UP,BROADCAST,RUNNING,MULTICAST>",
"ospfEnabled":true,
"interfaceIp":{
"100.64.2.6":{
"ipAddress":"100.64.2.6",
"ipAddressPrefixlen":24,
"ospfIfType":"Broadcast",
"localIfUsed":"100.64.2.255",
"area":"0.0.0.0",
"routerId":"6.0.0.6",
"networkType":"NBMA",
"cost":10,
"transmitDelaySecs":1,
"state":"DR",
"priority":2,
"bdrId":"6.0.0.15",
"bdrAddress":"100.64.2.15",
"networkLsaSequence":2147483652,
"mcastMemberOspfAllRouters":true,
"timerMsecs":10000,
"timerDeadSecs":40,
"timerWaitSecs":40,
"timerRetransmitSecs":5,
"timerHelloInMsecs":1559,
"nbrCount":1,
"nbrAdjacentCount":1
},
"100.64.3.6":{
"ipAddress":"100.64.3.6",
"ipAddressPrefixlen":24,
"ospfIfType":"Broadcast",
"localIfUsed":"100.64.3.255",
"area":"0.0.0.1",
"routerId":"6.0.0.6",
"networkType":"NBMA",
"cost":10,
"transmitDelaySecs":1,
"state":"DR",
"priority":222,
"bdrId":"6.0.0.15",
"bdrAddress":"100.64.3.15",
"networkLsaSequence":2147483651,
"mcastMemberOspfAllRouters":true,
"timerMsecs":10000,
"timerDeadSecs":40,
"timerWaitSecs":40,
"timerRetransmitSecs":5,
"timerHelloInMsecs":1559,
"nbrCount":1,
"nbrAdjacentCount":1
}
}
}
}
}
```
Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
2023-05-24 15:29:32 -07:00
Quentin Young
254feba0a5
Merge pull request #13592 from LabNConsulting/chopps/newmunet
...
munet: import 0.13.5 w/ nicer cmd logging
2023-05-24 12:20:41 -04:00
Christian Hopps
8aba44e3a7
munet: import 0.13.5 w/ nicer cmd logging
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-24 02:48:35 -04:00
sri-mohan1
bcffa75902
ldpd: changes for code maintainability
...
these changes are for improving the code maintainability and readability
Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
2023-05-23 23:20:01 +05:30
Russ White
575a0c5e3c
Merge pull request #13555 from LabNConsulting/aceelindem/ospf-p2mp-delayed-reflooding-config
...
ospfd: OSPF P2MP Delayed Reflooding configuration
2023-05-23 11:41:35 -04:00
Donald Sharp
769b228c76
Merge pull request #13586 from ponedo/link-state-doc-fix
...
doc: fix typo RFC7572 to RFC7752
2023-05-23 10:57:20 -04:00
ponedo
d764ffaf6f
doc: fix typo RFC7572 to RFC7752
...
Signed-off-by: ponedo <2534164734@qq.com>
2023-05-23 22:52:51 +08:00
Russ White
6a88c7a87e
Merge pull request #13548 from opensourcerouting/fix/use_min_value_of_cli_zebra_cap_ecmp
...
ripd: Make sure we do not overuse higher values for ECMP count
2023-05-23 08:25:46 -04:00
Russ White
7b7da41def
Merge pull request #13556 from donaldsharp/token_to_desc
...
memory desciprtion shortening
2023-05-23 08:21:51 -04:00
Russ White
5db30e7958
Merge pull request #13578 from opensourcerouting/fix/ripd_argv_find
...
ripd: Use argv_find to avoid buffer overflow when parsing allow-ecmp args
2023-05-23 08:20:07 -04:00
Russ White
fa45a19a60
Merge pull request #13535 from opensourcerouting/feature/ripng_allow_ecmp
...
ripng: Implement allow-ecmp X command
2023-05-23 07:35:32 -04:00
Donatas Abraitis
c8b4b93b83
Merge pull request #13577 from raja-rajasekar/frr_dev1
...
Fixing show bgp all json format and convert evpn to no pretty output
2023-05-23 10:40:46 +03:00