frr icon indicating copy to clipboard operation
frr copied to clipboard

Router pim config

Open nabahr opened this issue 1 year ago • 4 comments

Added new 'router pim[6] [vrf NAME]' config node.

Moved all existing global/vrf PIM configs to the new subnode and the existing configuration was set to be hidden and deprecated. Both versions of the configuration still work together for the time being until they can be safely removed.

PIM now always writes out configuration in the "router pim" syntax so ,in order to support frr-reload, the JSON based configuration in the PIM topotests also needs to generate configuration in the same syntax.

Config file style tests are left in the global pim configuration syntax for now as a test of backwards compatibility.

Fixes #16196

nabahr avatar Jun 21 '24 16:06 nabahr

oh god that diff size T_T …

eqvinox avatar Jun 24 '24 14:06 eqvinox

oh god that diff size T_T …

Yeah. I tried different ways to ALIAS the commands but couldn't get it to work so I essentially had to duplicate all of the global PIM commands. Also all of the pim global xpath's have been touched, since now the current XPath is set and commands use relative paths. I am happy to hear any other ideas.

nabahr avatar Jun 24 '24 16:06 nabahr

Documentation needs to be updated to reflect the new syntax.

Jafaral avatar Jun 24 '24 17:06 Jafaral

~~Verify source still fails for these 2 issues that won't be fixed~~

~~> < WARNING: Comparisons should place the constant on the right side of the test~~ ~~< #5618: FILE: /tmp/f1-589488/pim_cmd_common.c:5618:~~

~~This is a simple comparison of two defines, either order produces this warning.~~

~~> < WARNING: Macros with flow control statements should be avoided~~ ~~< #207: FILE: /tmp/f1-589488/pim_cmd_common.h:207:~~

~~This macro is meant to set up a few function variables and set the correct XPath for the deprecated CLI handlers. I can remove the macro if required but that'll require copying this duplicate code to all of the deprecated CLI handlers. As it is now I can't fix this warning.~~

Fixed these warnings now.

nabahr avatar Jun 28 '24 18:06 nabahr

Added a fix to frr-reload to detect and convert legacy pim configuration so that the tool works as expected. I reverted the changes to topotests so they are all back to using the legacy pim configuration.

nabahr avatar Jul 16 '24 18:07 nabahr