Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix distribute #8040

Merged
merged 6 commits into from
May 5, 2021
Merged

Fix distribute #8040

merged 6 commits into from
May 5, 2021

Conversation

donaldsharp
Copy link
Member

see individual commits. But effectively FRR's distribute-list ... commands are messed up a whole bunch. Try to sort it out better.

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/d1c25e012d2b366d001c7b0ef13bcc3d/raw/4abbb7242057d29f0855251c05db1887db803b97/cr_8040_1612815922.diff | git apply

diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c
index 1156bedb2..46b32832a 100644
--- a/ripd/rip_cli.c
+++ b/ripd/rip_cli.c
@@ -1019,15 +1019,14 @@ DEFPY_YANG (clear_ip_rip,
 	return ret;
 }
 
-DEFUN (rip_distribute_list,
-       rip_distribute_list_cmd,
-       "distribute-list [prefix] WORD <in|out> [WORD]",
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(rip_distribute_list, rip_distribute_list_cmd,
+      "distribute-list [prefix] WORD <in|out> [WORD]",
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[1]->type == WORD_TKN) ? 1 : 0;
@@ -1039,16 +1038,15 @@ DEFUN (rip_distribute_list,
 				      argv[1 + prefix]->arg, ifname);
 }
 
-DEFUN (rip_no_distribute_list,
-       rip_no_distribute_list_cmd,
-       "no distribute-list [prefix] WORD <in|out> [WORD]",
-       NO_STR
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(rip_no_distribute_list, rip_no_distribute_list_cmd,
+      "no distribute-list [prefix] WORD <in|out> [WORD]",
+      NO_STR
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[2]->type == WORD_TKN) ? 1 : 0;
diff --git a/ripngd/ripng_cli.c b/ripngd/ripng_cli.c
index 5f979b7dd..525464c23 100644
--- a/ripngd/ripng_cli.c
+++ b/ripngd/ripng_cli.c
@@ -503,16 +503,15 @@ DEFPY_YANG (clear_ipv6_rip,
 	return ret;
 }
 
-DEFUN (ripng_ipv6_distribute_list,
-       ripng_ipv6_distribute_list_cmd,
-       "ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
-       "IPv6\n"
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(ripng_ipv6_distribute_list, ripng_ipv6_distribute_list_cmd,
+      "ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
+      "IPv6\n"
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[2]->type == WORD_TKN) ? 1 : 0;
@@ -524,17 +523,16 @@ DEFUN (ripng_ipv6_distribute_list,
 				      argv[2 + prefix]->arg, ifname);
 }
 
-DEFUN (ripng_no_ipv6_distribute_list,
-       ripng_no_ipv6_distribute_list_cmd,
-       "no ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
-       NO_STR
-       "IPv6\n"
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(ripng_no_ipv6_distribute_list, ripng_no_ipv6_distribute_list_cmd,
+      "no ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
+      NO_STR
+      "IPv6\n"
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[3]->type == WORD_TKN) ? 1 : 0;

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

babeld/babeld.c Outdated
if (argv[argc - 1]->type == VARIABLE_TKN)
ifname = argv[argc - 1]->arg;

return distribute_list_parser(prefix, true, argv[2 + prefix]->arg,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be ->text although it happens to work since distribute_direction only checks the first char 🙄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

!
access-list private permit 10 10.0.0.0/8
access-list private deny any
!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one less space on der indent

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

it will be applied against a specific interface.

The `distribute-list` command can be used to filter the RIPNG path.
`distribute-list` can apply access-lists to a chosen interface. First, one
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its double `` for code, like you wrote eth0 below

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

!


`distribute-list` can be applied to both incoming and outgoing data.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

``

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it though 👻

lib/distribute.c Outdated

/* Get interface name corresponding distribute list. */
distfn(ctx, ifname, type, argv[1 + prefix]->arg);
assert("Expecting in or out only, fix your code");
Copy link
Member

@qlyoung qlyoung Feb 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assert is always true and never aborts the program, you mean
assert(!"Expecting in or out only, fix your code");

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

lib/distribute.c Outdated
/*
* Making the compiler happy. We should never get here
*/
return DISTRIBUTE_V4_IN;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe what you want here is __builtin_unreachable()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@LabN-CI
Copy link
Collaborator

LabN-CI commented Feb 8, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/8040 5df9e5d
Date 02/08/2021
Start 15:30:48
Finish 16:10:15
Run-Time 39:27
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2021-02-08-15:30:48.txt
Log autoscript-2021-02-08-15:31:52.log.bz2
Memory 499 494 426

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Feb 8, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17004/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topotests Ubuntu 16.04 i386 part 5: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPO5U16I386-17004/test

Topology Tests failed for Topotests Ubuntu 16.04 i386 part 5:

2021-02-08 22:02:41,290 ERROR: r7: bgpd left a dead pidfile (pid=11815)

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17004/artifact/TOPO5U16I386/ErrorLog/log_topotests.txt

Successful on other platforms/tests
  • Addresssanitizer topotests part 4
  • Topotests Ubuntu 16.04 amd64 part 9
  • Topotests Ubuntu 18.04 amd64 part 1
  • Addresssanitizer topotests part 2
  • Ubuntu 18.04 deb pkg check
  • Topotests Ubuntu 18.04 arm8 part 3
  • CentOS 7 rpm pkg check
  • Topotests Ubuntu 18.04 amd64 part 8
  • Debian 9 deb pkg check
  • Topotests Ubuntu 18.04 arm8 part 7
  • Addresssanitizer topotests part 9
  • Topotests Ubuntu 18.04 arm8 part 2
  • Addresssanitizer topotests part 7
  • Topotests Ubuntu 18.04 arm8 part 8
  • Topotests Ubuntu 16.04 amd64 part 2
  • Topotests Ubuntu 18.04 amd64 part 2
  • Topotests Ubuntu 16.04 i386 part 9
  • Static analyzer (clang)
  • Topotests Ubuntu 18.04 amd64 part 6
  • Ubuntu 16.04 deb pkg check
  • Topotests Ubuntu 16.04 amd64 part 6
  • Topotests Ubuntu 18.04 arm8 part 0
  • Topotests Ubuntu 18.04 arm8 part 5
  • Addresssanitizer topotests part 5
  • Topotests Ubuntu 18.04 amd64 part 5
  • Topotests Ubuntu 16.04 amd64 part 8
  • Debian 8 deb pkg check
  • Addresssanitizer topotests part 3
  • Topotests Ubuntu 16.04 amd64 part 0
  • Addresssanitizer topotests part 0
  • IPv4 ldp protocol on Ubuntu 18.04
  • Topotests Ubuntu 16.04 i386 part 7
  • Topotests Ubuntu 16.04 amd64 part 1
  • Topotests Ubuntu 18.04 amd64 part 3
  • Topotests Ubuntu 16.04 i386 part 4
  • Topotests Ubuntu 18.04 amd64 part 4
  • Addresssanitizer topotests part 1
  • IPv6 protocols on Ubuntu 18.04
  • Topotests Ubuntu 18.04 amd64 part 0
  • Topotests Ubuntu 18.04 arm8 part 4
  • Topotests Ubuntu 16.04 i386 part 6
  • Topotests Ubuntu 16.04 amd64 part 3
  • IPv4 protocols on Ubuntu 18.04
  • Addresssanitizer topotests part 8
  • Topotests Ubuntu 18.04 arm8 part 9
  • Debian 10 deb pkg check
  • Topotests Ubuntu 18.04 arm8 part 6
  • Topotests Ubuntu 18.04 arm8 part 1
  • Topotests Ubuntu 16.04 i386 part 0
  • Topotests Ubuntu 16.04 i386 part 3
  • Topotests Ubuntu 18.04 amd64 part 9
  • Topotests Ubuntu 16.04 amd64 part 7
  • Fedora 29 rpm pkg check
  • Topotests Ubuntu 18.04 amd64 part 7
  • Addresssanitizer topotests part 6
  • Ubuntu 20.04 deb pkg check
  • Topotests Ubuntu 16.04 i386 part 2
  • Topotests Ubuntu 16.04 i386 part 1
  • Topotests Ubuntu 16.04 amd64 part 5
  • Topotests Ubuntu 16.04 i386 part 8
  • Topotests Ubuntu 16.04 amd64 part 4

Warnings Generated during build:

Checkout code: Successful with additional warnings
Topotests Ubuntu 16.04 i386 part 5: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPO5U16I386-17004/test

Topology Tests failed for Topotests Ubuntu 16.04 i386 part 5:

2021-02-08 22:02:41,290 ERROR: r7: bgpd left a dead pidfile (pid=11815)

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17004/artifact/TOPO5U16I386/ErrorLog/log_topotests.txt

Report for eigrp_routemap.c | 2 issues
===============================================
< ERROR: Bad function definition - void eigrp_route_map_init() should probably be void eigrp_route_map_init(void)
< #1177: FILE: /tmp/f1-10306/eigrp_routemap.c:1177:

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17004/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210208-05-g5df9e5d9e-0 (missing) -> 7.7-dev-20210208-05-g5df9e5d9e-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210208-05-g5df9e5d9e-0 (missing) -> 7.7-dev-20210208-05-g5df9e5d9e-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210208-05-g5df9e5d9e-0 (missing) -> 7.7-dev-20210208-05-g5df9e5d9e-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210208-05-g5df9e5d9e-0 (missing) -> 7.7-dev-20210208-05-g5df9e5d9e-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210208-05-g5df9e5d9e-0 (missing) -> 7.7-dev-20210208-05-g5df9e5d9e-0~deb10u1

@LabN-CI
Copy link
Collaborator

LabN-CI commented Mar 9, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/8040 a1eaaa4
Date 03/09/2021
Start 18:10:45
Finish 18:49:53
Run-Time 39:08
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2021-03-09-18:10:45.txt
Log autoscript-2021-03-09-18:11:43.log.bz2
Memory 473 497 428

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Mar 10, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17551/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topotests Ubuntu 18.04 amd64 part 6: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPO6U18AMD64-17551/test

Topology Tests failed for Topotests Ubuntu 18.04 amd64 part 6:

*** defaultIntf: warning: r1 has no interfaces
2021-03-09 22:40:01,827 ERROR: r1: bgpd left a dead pidfile (pid=13903)
2021-03-09 22:49:06,614 ERROR: r2: bgpd left a dead pidfile (pid=19209)
2021-03-09 22:53:54,723 ERROR: assert failed at "evpn_type5_test_topo1.test_evpn_type5_topo1/test_evpn_routes_from_VNFs_p1": Testcase test_evpn_routes_from_VNFs_p1 :Failed 
   Error: [DUT: d2]: Missing route in RIB, routes: ['20::1/128']
assert "[DUT: d2]: Missing route in RIB, routes: ['20::1/128']" is True

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17551/artifact/TOPO6U18AMD64/ErrorLog/log_topotests.txt

Successful on other platforms/tests
  • Topotests Ubuntu 16.04 amd64 part 5
  • Topotests Ubuntu 16.04 i386 part 6
  • Topotests Ubuntu 18.04 arm8 part 9
  • Topotests Ubuntu 18.04 arm8 part 4
  • Topotests Ubuntu 18.04 amd64 part 7
  • Topotests Ubuntu 16.04 amd64 part 3
  • Addresssanitizer topotests part 7
  • Topotests Ubuntu 18.04 arm8 part 0
  • Static analyzer (clang)
  • Fedora 29 rpm pkg check
  • Topotests Ubuntu 18.04 arm8 part 5
  • Topotests Ubuntu 16.04 i386 part 2
  • Addresssanitizer topotests part 5
  • Topotests Ubuntu 16.04 amd64 part 4
  • Topotests Ubuntu 18.04 amd64 part 1
  • Topotests Ubuntu 16.04 i386 part 5
  • Topotests Ubuntu 18.04 arm8 part 3
  • Topotests Ubuntu 18.04 amd64 part 5
  • Topotests Ubuntu 16.04 amd64 part 7
  • CentOS 7 rpm pkg check
  • Topotests Ubuntu 16.04 i386 part 7
  • Addresssanitizer topotests part 0
  • Topotests Ubuntu 16.04 amd64 part 0
  • Topotests Ubuntu 18.04 amd64 part 9
  • Topotests Ubuntu 18.04 arm8 part 1
  • Topotests Ubuntu 16.04 amd64 part 1
  • Addresssanitizer topotests part 8
  • Topotests Ubuntu 18.04 amd64 part 3
  • Topotests Ubuntu 18.04 amd64 part 0
  • Addresssanitizer topotests part 1
  • Topotests Ubuntu 18.04 amd64 part 4
  • Addresssanitizer topotests part 4
  • IPv6 protocols on Ubuntu 18.04
  • Topotests Ubuntu 16.04 i386 part 0
  • Addresssanitizer topotests part 6
  • Topotests Ubuntu 16.04 i386 part 1
  • Topotests Ubuntu 18.04 amd64 part 2
  • Debian 10 deb pkg check
  • Topotests Ubuntu 18.04 arm8 part 8
  • IPv4 protocols on Ubuntu 18.04
  • Topotests Ubuntu 16.04 i386 part 9
  • Topotests Ubuntu 18.04 arm8 part 6
  • Topotests Ubuntu 16.04 amd64 part 2
  • Topotests Ubuntu 16.04 amd64 part 6
  • Topotests Ubuntu 16.04 i386 part 3
  • Ubuntu 18.04 deb pkg check
  • Ubuntu 20.04 deb pkg check
  • Topotests Ubuntu 16.04 i386 part 8
  • Ubuntu 16.04 deb pkg check
  • Addresssanitizer topotests part 2
  • Topotests Ubuntu 16.04 amd64 part 9
  • Topotests Ubuntu 16.04 amd64 part 8
  • Addresssanitizer topotests part 3
  • IPv4 ldp protocol on Ubuntu 18.04
  • Debian 8 deb pkg check
  • Topotests Ubuntu 18.04 amd64 part 8
  • Debian 9 deb pkg check
  • Addresssanitizer topotests part 9
  • Topotests Ubuntu 16.04 i386 part 4
  • Topotests Ubuntu 18.04 arm8 part 2
  • Topotests Ubuntu 18.04 arm8 part 7

Warnings Generated during build:

Checkout code: Successful with additional warnings
Topotests Ubuntu 18.04 amd64 part 6: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPO6U18AMD64-17551/test

Topology Tests failed for Topotests Ubuntu 18.04 amd64 part 6:

*** defaultIntf: warning: r1 has no interfaces
2021-03-09 22:40:01,827 ERROR: r1: bgpd left a dead pidfile (pid=13903)
2021-03-09 22:49:06,614 ERROR: r2: bgpd left a dead pidfile (pid=19209)
2021-03-09 22:53:54,723 ERROR: assert failed at "evpn_type5_test_topo1.test_evpn_type5_topo1/test_evpn_routes_from_VNFs_p1": Testcase test_evpn_routes_from_VNFs_p1 :Failed 
   Error: [DUT: d2]: Missing route in RIB, routes: ['20::1/128']
assert "[DUT: d2]: Missing route in RIB, routes: ['20::1/128']" is True

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17551/artifact/TOPO6U18AMD64/ErrorLog/log_topotests.txt

Report for eigrp_routemap.c | 2 issues
===============================================
< ERROR: Bad function definition - void eigrp_route_map_init() should probably be void eigrp_route_map_init(void)
< #1177: FILE: /tmp/f1-16105/eigrp_routemap.c:1177:

@donaldsharp
Copy link
Member Author

ci:rerun

Copy link
Member

@qlyoung qlyoung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple more things

babeld/babeld.c Outdated
ifname = argv[argc - 1]->arg;

return distribute_list_no_parser(vty, prefix, true,
argv[3 + prefix]->arg,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I should have noted, the same ->text usage change should have been done in the rest of the places as well

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -236,11 +236,13 @@ Filtering RIP Routes

RIP routes can be filtered by a distribute-list.

.. clicmd:: distribute-list ACCESS_LIST DIRECT IFNAME
.. clicmd:: no distribute-list [prefix] LIST <in|out> IFNAME
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove no

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

command. ACCESS_LIST is an access-list name. `direct` is ``in`` or
``out``. If `direct` is ``in``, the access-list is applied only to incoming
packets.::
.. clicmd:: no distribute-list [prefix] LIST <in|out> IFNAME
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove no

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Mar 10, 2021

Continuous Integration Result: SUCCESSFUL

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17567/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Checkout code: Successful with additional warnings
Report for eigrp_routemap.c | 2 issues
===============================================
< ERROR: Bad function definition - void eigrp_route_map_init() should probably be void eigrp_route_map_init(void)
< #1177: FILE: /tmp/f1-8678/eigrp_routemap.c:1177:

Copy link
Member

@rwestphal rwestphal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (other than Quentin's comments)

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/aa93700dd4c157bbeaab70b77b1985ee/raw/4abbb7242057d29f0855251c05db1887db803b97/cr_8040_1616763717.diff | git apply

diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c
index 1156bedb2..46b32832a 100644
--- a/ripd/rip_cli.c
+++ b/ripd/rip_cli.c
@@ -1019,15 +1019,14 @@ DEFPY_YANG (clear_ip_rip,
 	return ret;
 }
 
-DEFUN (rip_distribute_list,
-       rip_distribute_list_cmd,
-       "distribute-list [prefix] WORD <in|out> [WORD]",
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(rip_distribute_list, rip_distribute_list_cmd,
+      "distribute-list [prefix] WORD <in|out> [WORD]",
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[1]->type == WORD_TKN) ? 1 : 0;
@@ -1039,16 +1038,15 @@ DEFUN (rip_distribute_list,
 				      argv[1 + prefix]->arg, ifname);
 }
 
-DEFUN (rip_no_distribute_list,
-       rip_no_distribute_list_cmd,
-       "no distribute-list [prefix] WORD <in|out> [WORD]",
-       NO_STR
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(rip_no_distribute_list, rip_no_distribute_list_cmd,
+      "no distribute-list [prefix] WORD <in|out> [WORD]",
+      NO_STR
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[2]->type == WORD_TKN) ? 1 : 0;
diff --git a/ripngd/ripng_cli.c b/ripngd/ripng_cli.c
index 5f979b7dd..525464c23 100644
--- a/ripngd/ripng_cli.c
+++ b/ripngd/ripng_cli.c
@@ -503,16 +503,15 @@ DEFPY_YANG (clear_ipv6_rip,
 	return ret;
 }
 
-DEFUN (ripng_ipv6_distribute_list,
-       ripng_ipv6_distribute_list_cmd,
-       "ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
-       "IPv6\n"
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(ripng_ipv6_distribute_list, ripng_ipv6_distribute_list_cmd,
+      "ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
+      "IPv6\n"
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[2]->type == WORD_TKN) ? 1 : 0;
@@ -524,17 +523,16 @@ DEFUN (ripng_ipv6_distribute_list,
 				      argv[2 + prefix]->arg, ifname);
 }
 
-DEFUN (ripng_no_ipv6_distribute_list,
-       ripng_no_ipv6_distribute_list_cmd,
-       "no ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
-       NO_STR
-       "IPv6\n"
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(ripng_no_ipv6_distribute_list, ripng_no_ipv6_distribute_list_cmd,
+      "no ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
+      NO_STR
+      "IPv6\n"
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[3]->type == WORD_TKN) ? 1 : 0;

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@LabN-CI
Copy link
Collaborator

LabN-CI commented Mar 26, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/8040 7d89b1c
Date 03/26/2021
Start 09:45:44
Finish 10:25:26
Run-Time 39:42
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2021-03-26-09:45:44.txt
Log autoscript-2021-03-26-09:46:52.log.bz2
Memory 492 482 426

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Mar 26, 2021

Continuous Integration Result: SUCCESSFUL

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18016/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Checkout code: Successful with additional warnings
Report for eigrp_routemap.c | 2 issues
===============================================
< ERROR: Bad function definition - void eigrp_route_map_init() should probably be void eigrp_route_map_init(void)
< #1177: FILE: /tmp/f1-396/eigrp_routemap.c:1177:

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/6855f8a4b3399a95949d3698b70496b0/raw/1176528d33a0d0c009048f71abccffc57bde2981/cr_8040_1616778616.diff | git apply

diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c
index 43e5b21fa..b34789cdf 100644
--- a/ripd/rip_cli.c
+++ b/ripd/rip_cli.c
@@ -1019,15 +1019,14 @@ DEFPY_YANG (clear_ip_rip,
 	return ret;
 }
 
-DEFUN (rip_distribute_list,
-       rip_distribute_list_cmd,
-       "distribute-list [prefix] WORD <in|out> [WORD]",
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(rip_distribute_list, rip_distribute_list_cmd,
+      "distribute-list [prefix] WORD <in|out> [WORD]",
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[1]->type == WORD_TKN) ? 1 : 0;
@@ -1039,16 +1038,15 @@ DEFUN (rip_distribute_list,
 				      argv[1 + prefix]->arg, ifname);
 }
 
-DEFUN (rip_no_distribute_list,
-       rip_no_distribute_list_cmd,
-       "no distribute-list [prefix] WORD <in|out> [WORD]",
-       NO_STR
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(rip_no_distribute_list, rip_no_distribute_list_cmd,
+      "no distribute-list [prefix] WORD <in|out> [WORD]",
+      NO_STR
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[2]->type == WORD_TKN) ? 1 : 0;
diff --git a/ripngd/ripng_cli.c b/ripngd/ripng_cli.c
index 7e0d01408..3d594900a 100644
--- a/ripngd/ripng_cli.c
+++ b/ripngd/ripng_cli.c
@@ -503,16 +503,15 @@ DEFPY_YANG (clear_ipv6_rip,
 	return ret;
 }
 
-DEFUN (ripng_ipv6_distribute_list,
-       ripng_ipv6_distribute_list_cmd,
-       "ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
-       "IPv6\n"
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(ripng_ipv6_distribute_list, ripng_ipv6_distribute_list_cmd,
+      "ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
+      "IPv6\n"
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[2]->type == WORD_TKN) ? 1 : 0;
@@ -524,17 +523,16 @@ DEFUN (ripng_ipv6_distribute_list,
 				      argv[2 + prefix]->arg, ifname);
 }
 
-DEFUN (ripng_no_ipv6_distribute_list,
-       ripng_no_ipv6_distribute_list_cmd,
-       "no ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
-       NO_STR
-       "IPv6\n"
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(ripng_no_ipv6_distribute_list, ripng_no_ipv6_distribute_list_cmd,
+      "no ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
+      NO_STR
+      "IPv6\n"
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[3]->type == WORD_TKN) ? 1 : 0;

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@LabN-CI
Copy link
Collaborator

LabN-CI commented Mar 26, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/8040 421f197
Date 03/26/2021
Start 13:15:44
Finish 13:55:15
Run-Time 39:31
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2021-03-26-13:15:44.txt
Log autoscript-2021-03-26-13:16:49.log.bz2
Memory 478 484 432

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Mar 26, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18020/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topotests Ubuntu 16.04 i386 part 1: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TP1U1604I386-18020/test

Topology Tests failed for Topotests Ubuntu 16.04 i386 part 1:

2021-03-26 18:47:13,705 ERROR: rt5: bfdd left a dead pidfile (pid=26046)
2021-03-26 18:51:53,443 ERROR: 'router_json_cmp' failed after 156.12 seconds
2021-03-26 18:51:53,446 ERROR: assert failed at "test_bfd_topo3/test_wait_bfd_convergence": "r1" BFD configuration failure
assert Generated JSON diff error report:
  
  > $: d2 has the following element at index 1 which is not present in d1: 
  
  	{
  	    "echo-transmit-interval": 0,
  	    "status": "up",
  	    "detect-multiplier": 3,
  	    "remote-receive-interval": 600,
  	    "receive-interval": 600,
  	    "remote-diagnostic": "ok",
  	    "uptime": "*",
  	    "diagnostic": "ok",
  	    "multihop": false,
  	    "interface": "r1-eth0",
  	    "remote-echo-receive-interval": 50,
  	    "transmit-interval": 600,
  	    "vrf": "default",
  	    "remote-transmit-interval": 600,
  	    "peer": "2001:db8:1::2",
  	    "echo-receive-interval": 50,
  	    "remote-id": "*",
  	    "local": "2001:db8:1::1",
  	    "id": "*",
  	    "remote-detect-multiplier": 3,
  	    "passive-mode": true
  	}
  
  	Closest match in d1 is at index 0 with the following errors: 
  
  	> $[0]: d2 has key 'uptime' which is not present in d1
  	> $[0]->status: d1 has element with value 'init' but in d2 it has value 'up'
  	> $[0]->remote-receive-interval: d1 has element with value '1000' but in d2 it has value '600'
  	> $[0]->remote-transmit-interval: d1 has element with value '1000' but in d2 it has value '600'
  
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
2021-03-26 18:58:34,830 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/bgp.py", line 203, in create_router_bgp
    tgen, router, data_all_bgp, "bgp", build, load_config
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 6: % Unknown command[27]: neighbor 10.0.0.13 remote-as 0 
% Specify remote-as or peer-group commands first
line 7: Failure to communicate[13] to bgpd, line: neighbor 10.0.0.13 timers 3 10 

line 9: % Unknown command[30]: neighbor fd00:0:0:3::1 remote-as 0 
% Specify remote-as or peer-group commands first
line 11: Failure to communicate[13] to bgpd, line: neighbor fd00:0:0:3::1 activate 

% Specify remote-as or peer-group commands first
line 12: Failure to communicate[13] to bgpd, line: neighbor fd00:0:0:3::1 timers 3 10 

% Specify remote-as or peer-group commands first
line 14: Failure to communicate[13] to bgpd, line: no neighbor fd00:0:0:3::1 activate 



2021-03-26 18:58:35,225 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/bgp.py", line 203, in create_router_bgp
    tgen, router, data_all_bgp, "bgp", build, load_config
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % No BGP process is configured
line 2: Failure to communicate[13] to bgpd, line: no router bgp  

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18020/artifact/TP1U1604I386/ErrorLog/log_topotests.txt

Successful on other platforms/tests
  • Ubuntu 20.04 deb pkg check
  • Debian 9 deb pkg check
  • Topotests Ubuntu 18.04 arm8 part 7
  • Topotests Ubuntu 16.04 i386 part 3
  • Addresssanitizer topotests part 4
  • Topotests Ubuntu 16.04 amd64 part 9
  • Topotests Ubuntu 18.04 amd64 part 1
  • Ubuntu 18.04 deb pkg check
  • Topotests Ubuntu 16.04 i386 part 5
  • Topotests Ubuntu 16.04 amd64 part 2
  • CentOS 7 rpm pkg check
  • Topotests Ubuntu 18.04 arm8 part 2
  • Debian 10 deb pkg check
  • Topotests Ubuntu 18.04 amd64 part 8
  • Topotests Ubuntu 18.04 amd64 part 2
  • Topotests Ubuntu 16.04 i386 part 0
  • Addresssanitizer topotests part 2
  • Topotests Ubuntu 18.04 arm8 part 3
  • Topotests Ubuntu 16.04 amd64 part 6
  • Addresssanitizer topotests part 9
  • Addresssanitizer topotests part 3
  • Ubuntu 16.04 deb pkg check
  • Addresssanitizer topotests part 5
  • Addresssanitizer topotests part 7
  • Topotests Ubuntu 16.04 i386 part 9
  • Topotests Ubuntu 18.04 arm8 part 8
  • Topotests Ubuntu 18.04 amd64 part 6
  • Topotests Ubuntu 16.04 amd64 part 8
  • Debian 8 deb pkg check
  • Topotests Ubuntu 18.04 amd64 part 4
  • Topotests Ubuntu 18.04 arm8 part 0
  • Topotests Ubuntu 16.04 amd64 part 0
  • Addresssanitizer topotests part 0
  • Topotests Ubuntu 18.04 arm8 part 5
  • IPv4 ldp protocol on Ubuntu 18.04
  • Topotests Ubuntu 16.04 i386 part 7
  • Static analyzer (clang)
  • Addresssanitizer topotests part 1
  • Topotests Ubuntu 18.04 arm8 part 9
  • IPv6 protocols on Ubuntu 18.04
  • Topotests Ubuntu 18.04 amd64 part 0
  • Topotests Ubuntu 16.04 amd64 part 1
  • Topotests Ubuntu 18.04 amd64 part 3
  • Topotests Ubuntu 16.04 i386 part 6
  • Topotests Ubuntu 16.04 i386 part 4
  • IPv4 protocols on Ubuntu 18.04
  • Addresssanitizer topotests part 8
  • Topotests Ubuntu 16.04 i386 part 8
  • Topotests Ubuntu 18.04 arm8 part 6
  • Topotests Ubuntu 18.04 arm8 part 1
  • Topotests Ubuntu 18.04 arm8 part 4
  • Addresssanitizer topotests part 6
  • Topotests Ubuntu 16.04 i386 part 2
  • Topotests Ubuntu 16.04 amd64 part 5
  • Topotests Ubuntu 16.04 amd64 part 4
  • Topotests Ubuntu 18.04 amd64 part 5
  • Topotests Ubuntu 18.04 amd64 part 9
  • Topotests Ubuntu 16.04 amd64 part 3
  • Topotests Ubuntu 16.04 amd64 part 7
  • Fedora 29 rpm pkg check
  • Topotests Ubuntu 18.04 amd64 part 7

Warnings Generated during build:

Checkout code: Successful with additional warnings
Topotests Ubuntu 16.04 i386 part 1: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TP1U1604I386-18020/test

Topology Tests failed for Topotests Ubuntu 16.04 i386 part 1:

2021-03-26 18:47:13,705 ERROR: rt5: bfdd left a dead pidfile (pid=26046)
2021-03-26 18:51:53,443 ERROR: 'router_json_cmp' failed after 156.12 seconds
2021-03-26 18:51:53,446 ERROR: assert failed at "test_bfd_topo3/test_wait_bfd_convergence": "r1" BFD configuration failure
assert Generated JSON diff error report:
  
  > $: d2 has the following element at index 1 which is not present in d1: 
  
  	{
  	    "echo-transmit-interval": 0,
  	    "status": "up",
  	    "detect-multiplier": 3,
  	    "remote-receive-interval": 600,
  	    "receive-interval": 600,
  	    "remote-diagnostic": "ok",
  	    "uptime": "*",
  	    "diagnostic": "ok",
  	    "multihop": false,
  	    "interface": "r1-eth0",
  	    "remote-echo-receive-interval": 50,
  	    "transmit-interval": 600,
  	    "vrf": "default",
  	    "remote-transmit-interval": 600,
  	    "peer": "2001:db8:1::2",
  	    "echo-receive-interval": 50,
  	    "remote-id": "*",
  	    "local": "2001:db8:1::1",
  	    "id": "*",
  	    "remote-detect-multiplier": 3,
  	    "passive-mode": true
  	}
  
  	Closest match in d1 is at index 0 with the following errors: 
  
  	> $[0]: d2 has key 'uptime' which is not present in d1
  	> $[0]->status: d1 has element with value 'init' but in d2 it has value 'up'
  	> $[0]->remote-receive-interval: d1 has element with value '1000' but in d2 it has value '600'
  	> $[0]->remote-transmit-interval: d1 has element with value '1000' but in d2 it has value '600'
  
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
2021-03-26 18:58:34,830 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/bgp.py", line 203, in create_router_bgp
    tgen, router, data_all_bgp, "bgp", build, load_config
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 6: % Unknown command[27]: neighbor 10.0.0.13 remote-as 0 
% Specify remote-as or peer-group commands first
line 7: Failure to communicate[13] to bgpd, line: neighbor 10.0.0.13 timers 3 10 

line 9: % Unknown command[30]: neighbor fd00:0:0:3::1 remote-as 0 
% Specify remote-as or peer-group commands first
line 11: Failure to communicate[13] to bgpd, line: neighbor fd00:0:0:3::1 activate 

% Specify remote-as or peer-group commands first
line 12: Failure to communicate[13] to bgpd, line: neighbor fd00:0:0:3::1 timers 3 10 

% Specify remote-as or peer-group commands first
line 14: Failure to communicate[13] to bgpd, line: no neighbor fd00:0:0:3::1 activate 



2021-03-26 18:58:35,225 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/bgp.py", line 203, in create_router_bgp
    tgen, router, data_all_bgp, "bgp", build, load_config
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604I386/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % No BGP process is configured
line 2: Failure to communicate[13] to bgpd, line: no router bgp  

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18020/artifact/TP1U1604I386/ErrorLog/log_topotests.txt

Report for eigrp_routemap.c | 2 issues
===============================================
< ERROR: Bad function definition - void eigrp_route_map_init() should probably be void eigrp_route_map_init(void)
< #1177: FILE: /tmp/f1-12600/eigrp_routemap.c:1177:

@idryzhov
Copy link
Contributor

idryzhov commented May 4, 2021

ci:rerun

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented May 4, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18801/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topotests debian 10 amd64 part 4: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPO4DEB10AMD64-18801/test

Topology Tests failed for Topotests debian 10 amd64 part 4:

2021-05-04 16:21:45,939 ERROR: ******************************************************************************
2021-05-04 16:21:45,940 ERROR: Test Target Summary                                                  Pass Fail
2021-05-04 16:21:45,940 ERROR: ******************************************************************************
2021-05-04 16:21:45,940 ERROR: FILE: scripts/check_linux_vrf.py
2021-05-04 16:21:45,940 ERROR: FILE: scripts/adjacencies.py
2021-05-04 16:21:45,940 ERROR: 40   ce4    Adjacencies up +243.38 secs                              0    1
2021-05-04 16:21:45,940 ERROR: 50   r4     All adjacencies up                                       0
2021-05-04 16:21:45,940 ERROR: See /tmp/topotests/bgp_instance_del_test.test_bgp_instance_del_test/output.log for details of errors
2021-05-04 16:21:45,944 ERROR: assert failed at "bgp_instance_del_test.test_bgp_instance_del_test/test_adjacencies": 2 tests failed
2021-05-04 16:27:12,701 ERROR: ******************************************************************************
2021-05-04 16:27:12,702 ERROR: Test Target Summary                                                  Pass Fail
2021-05-04 16:27:12,702 ERROR: ******************************************************************************
2021-05-04 16:27:12,702 ERROR: FILE: scripts/check_linux_vrf.py
2021-05-04 16:27:12,702 ERROR: FILE: scripts/adjacencies.py
2021-05-04 16:27:12,703 ERROR: 40   ce4    Adjacencies up +241.99 secs                              0    1
2021-05-04 16:27:12,703 ERROR: 50   r4     All adjacencies up                                       0
2021-05-04 16:27:12,703 ERROR: See /tmp/topotests/bgp_l3vpn_to_bgp_vrf.test_bgp_l3vpn_to_bgp_vrf/output.log for details of errors
2021-05-04 16:27:12,706 ERROR: assert failed at "bgp_l3vpn_to_bgp_vrf.test_bgp_l3vpn_to_bgp_vrf/test_adjacencies": 2 tests failed
2021-05-04 16:28:52,979 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp community-list standard ANY permit 0:-1 



2021-05-04 16:28:53,143 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp community-list standard ANY permit 0:65536 



2021-05-04 16:28:53,311 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp large-community-list standard ANY permit 0:4294967296 



2021-05-04 16:28:53,472 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp large-community-list standard ANY permit 0:-1:1 



2021-05-04 16:28:54,467 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp large-community-list standard ANY permit 1:a:2 



2021-05-04 16:31:03,177 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 2: % Command incomplete[4]: bgp large-community-list standard Test1 permit  

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18801/artifact/TOPO4DEB10AMD64/ErrorLog/log_topotests.txt

Successful on other platforms/tests
  • Topotests Ubuntu 18.04 arm8 part 3
  • CentOS 7 rpm pkg check
  • Topotests Ubuntu 18.04 i386 part 7
  • Topotests Ubuntu 18.04 amd64 part 8
  • Topotests debian 10 amd64 part 1
  • Topotests Ubuntu 18.04 amd64 part 9
  • Addresssanitizer topotests part 2
  • Topotests Ubuntu 18.04 i386 part 3
  • Topotests Ubuntu 18.04 i386 part 2
  • Topotests debian 10 amd64 part 5
  • Topotests debian 10 amd64 part 6
  • Addresssanitizer topotests part 4
  • Topotests debian 10 amd64 part 0
  • Topotests Ubuntu 18.04 i386 part 8
  • Topotests Ubuntu 18.04 arm8 part 2
  • Addresssanitizer topotests part 9
  • Topotests Ubuntu 18.04 arm8 part 7
  • Topotests debian 10 amd64 part 2
  • Ubuntu 16.04 deb pkg check
  • Topotests Ubuntu 18.04 i386 part 6
  • Topotests Ubuntu 18.04 arm8 part 8
  • Topotests Ubuntu 18.04 i386 part 1
  • Topotests Ubuntu 18.04 amd64 part 2
  • Addresssanitizer topotests part 7
  • Topotests Ubuntu 18.04 i386 part 9
  • Topotests Ubuntu 18.04 i386 part 4
  • Topotests Ubuntu 18.04 amd64 part 6
  • Topotests Ubuntu 18.04 arm8 part 5
  • Topotests Ubuntu 18.04 arm8 part 0
  • Static analyzer (clang)
  • Addresssanitizer topotests part 5
  • Topotests debian 10 amd64 part 3
  • Ubuntu 18.04 deb pkg check
  • Topotests Ubuntu 18.04 amd64 part 1
  • Topotests Ubuntu 18.04 i386 part 0
  • Topotests Ubuntu 18.04 i386 part 5
  • Addresssanitizer topotests part 3
  • Topotests Ubuntu 18.04 amd64 part 5
  • Addresssanitizer topotests part 1
  • Addresssanitizer topotests part 0
  • IPv4 ldp protocol on Ubuntu 18.04
  • Topotests Ubuntu 18.04 arm8 part 6
  • IPv4 protocols on Ubuntu 18.04
  • Addresssanitizer topotests part 8
  • Topotests Ubuntu 18.04 arm8 part 1
  • Topotests Ubuntu 18.04 amd64 part 3
  • IPv6 protocols on Ubuntu 18.04
  • Topotests Ubuntu 18.04 amd64 part 4
  • Topotests Ubuntu 18.04 amd64 part 0
  • Topotests Ubuntu 18.04 arm8 part 9
  • Topotests debian 10 amd64 part 7
  • Addresssanitizer topotests part 6
  • Topotests Ubuntu 18.04 arm8 part 4
  • Debian 10 deb pkg check
  • Topotests Ubuntu 18.04 amd64 part 7
  • Fedora 29 rpm pkg check
  • Topotests debian 10 amd64 part 9
  • Debian 9 deb pkg check
  • Topotests debian 10 amd64 part 8
  • Ubuntu 20.04 deb pkg check

Warnings Generated during build:

Checkout code: Successful with additional warnings
Topotests debian 10 amd64 part 4: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPO4DEB10AMD64-18801/test

Topology Tests failed for Topotests debian 10 amd64 part 4:

2021-05-04 16:21:45,939 ERROR: ******************************************************************************
2021-05-04 16:21:45,940 ERROR: Test Target Summary                                                  Pass Fail
2021-05-04 16:21:45,940 ERROR: ******************************************************************************
2021-05-04 16:21:45,940 ERROR: FILE: scripts/check_linux_vrf.py
2021-05-04 16:21:45,940 ERROR: FILE: scripts/adjacencies.py
2021-05-04 16:21:45,940 ERROR: 40   ce4    Adjacencies up +243.38 secs                              0    1
2021-05-04 16:21:45,940 ERROR: 50   r4     All adjacencies up                                       0
2021-05-04 16:21:45,940 ERROR: See /tmp/topotests/bgp_instance_del_test.test_bgp_instance_del_test/output.log for details of errors
2021-05-04 16:21:45,944 ERROR: assert failed at "bgp_instance_del_test.test_bgp_instance_del_test/test_adjacencies": 2 tests failed
2021-05-04 16:27:12,701 ERROR: ******************************************************************************
2021-05-04 16:27:12,702 ERROR: Test Target Summary                                                  Pass Fail
2021-05-04 16:27:12,702 ERROR: ******************************************************************************
2021-05-04 16:27:12,702 ERROR: FILE: scripts/check_linux_vrf.py
2021-05-04 16:27:12,702 ERROR: FILE: scripts/adjacencies.py
2021-05-04 16:27:12,703 ERROR: 40   ce4    Adjacencies up +241.99 secs                              0    1
2021-05-04 16:27:12,703 ERROR: 50   r4     All adjacencies up                                       0
2021-05-04 16:27:12,703 ERROR: See /tmp/topotests/bgp_l3vpn_to_bgp_vrf.test_bgp_l3vpn_to_bgp_vrf/output.log for details of errors
2021-05-04 16:27:12,706 ERROR: assert failed at "bgp_l3vpn_to_bgp_vrf.test_bgp_l3vpn_to_bgp_vrf/test_adjacencies": 2 tests failed
2021-05-04 16:28:52,979 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp community-list standard ANY permit 0:-1 



2021-05-04 16:28:53,143 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp community-list standard ANY permit 0:65536 



2021-05-04 16:28:53,311 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp large-community-list standard ANY permit 0:4294967296 



2021-05-04 16:28:53,472 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp large-community-list standard ANY permit 0:-1:1 



2021-05-04 16:28:54,467 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp large-community-list standard ANY permit 1:a:2 



2021-05-04 16:31:03,177 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 2398, in create_bgp_community_lists
    tgen, router, config_data, "bgp_community_list", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 290, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO4DEB10AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 2: % Command incomplete[4]: bgp large-community-list standard Test1 permit  

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18801/artifact/TOPO4DEB10AMD64/ErrorLog/log_topotests.txt

Report for eigrp_routemap.c | 2 issues
===============================================
< ERROR: Bad function definition - void eigrp_route_map_init() should probably be void eigrp_route_map_init(void)
< #1177: FILE: /tmp/f1-6864/eigrp_routemap.c:1177:

Abstract the parsing of distribute lists so that we
don't have as much cut-n-paste code.

This is a setup commit for future work.  In effect
current distribute-list handling is all kinds of messed up

a) eigrp and babel both attempt to use distribute-lists, they just plain
don't work.
b) `distribute-list` is only sent to rip.  `ipv6 distribute-list`
is sent to ripngd.  If you use `distribute-list` under `router ripng`
it sends the command to rip but ripd is in the wrong mode and it
never works.
c) Should ripngd care about v4 and v6 specific distribute-lists?
This dichotomy was added for babel but babel has been broke
about this since day 1( see a ).

All in all we need to unwind this whole mess.  Make distribute-list
commands specific to the daemons( so that we can be in the right
sub-mode ).  But the parsing is going to be the same across all
daemons.  So let's provide that functionality in `lib/distribute.c`

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Allow the `distribute-list...` command in ripd and ripngd to
work correctly.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
The distribute-list command was being registered but never
setup properly in EIGRP.  Put it into place.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
The `distribute-list` commands were registered but never setup
properly to work.  Put the commands in place.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
The distribute_list_init command is not used and is setup
code that will never be used because it makes assumptions about
how distribute-lists work that are fundamentally incorrect.

Remove the code.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/6b1f0f5afacd7520b3103808762a76b0/raw/1176528d33a0d0c009048f71abccffc57bde2981/cr_8040_1620159908.diff | git apply

diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c
index 43e5b21fa..b34789cdf 100644
--- a/ripd/rip_cli.c
+++ b/ripd/rip_cli.c
@@ -1019,15 +1019,14 @@ DEFPY_YANG (clear_ip_rip,
 	return ret;
 }
 
-DEFUN (rip_distribute_list,
-       rip_distribute_list_cmd,
-       "distribute-list [prefix] WORD <in|out> [WORD]",
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(rip_distribute_list, rip_distribute_list_cmd,
+      "distribute-list [prefix] WORD <in|out> [WORD]",
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[1]->type == WORD_TKN) ? 1 : 0;
@@ -1039,16 +1038,15 @@ DEFUN (rip_distribute_list,
 				      argv[1 + prefix]->arg, ifname);
 }
 
-DEFUN (rip_no_distribute_list,
-       rip_no_distribute_list_cmd,
-       "no distribute-list [prefix] WORD <in|out> [WORD]",
-       NO_STR
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(rip_no_distribute_list, rip_no_distribute_list_cmd,
+      "no distribute-list [prefix] WORD <in|out> [WORD]",
+      NO_STR
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[2]->type == WORD_TKN) ? 1 : 0;
diff --git a/ripngd/ripng_cli.c b/ripngd/ripng_cli.c
index 7e0d01408..3d594900a 100644
--- a/ripngd/ripng_cli.c
+++ b/ripngd/ripng_cli.c
@@ -503,16 +503,15 @@ DEFPY_YANG (clear_ipv6_rip,
 	return ret;
 }
 
-DEFUN (ripng_ipv6_distribute_list,
-       ripng_ipv6_distribute_list_cmd,
-       "ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
-       "IPv6\n"
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(ripng_ipv6_distribute_list, ripng_ipv6_distribute_list_cmd,
+      "ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
+      "IPv6\n"
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[2]->type == WORD_TKN) ? 1 : 0;
@@ -524,17 +523,16 @@ DEFUN (ripng_ipv6_distribute_list,
 				      argv[2 + prefix]->arg, ifname);
 }
 
-DEFUN (ripng_no_ipv6_distribute_list,
-       ripng_no_ipv6_distribute_list_cmd,
-       "no ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
-       NO_STR
-       "IPv6\n"
-       "Filter networks in routing updates\n"
-       "Specify a prefix\n"
-       "Access-list name\n"
-       "Filter incoming routing updates\n"
-       "Filter outgoing routing updates\n"
-       "Interface name\n")
+DEFUN(ripng_no_ipv6_distribute_list, ripng_no_ipv6_distribute_list_cmd,
+      "no ipv6 distribute-list [prefix] WORD <in|out> [WORD]",
+      NO_STR
+      "IPv6\n"
+      "Filter networks in routing updates\n"
+      "Specify a prefix\n"
+      "Access-list name\n"
+      "Filter incoming routing updates\n"
+      "Filter outgoing routing updates\n"
+      "Interface name\n")
 {
 	const char *ifname = NULL;
 	int prefix = (argv[3]->type == WORD_TKN) ? 1 : 0;

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@LabN-CI
Copy link
Collaborator

LabN-CI commented May 4, 2021

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/8040 8a7be4d
Date 05/04/2021
Start 16:25:45
Finish 16:51:08
Run-Time 25:23
Total 1815
Pass 1815
Fail 0
Valgrind-Errors
Valgrind-Loss
Details vncregress-2021-05-04-16:25:45.txt
Log autoscript-2021-05-04-16:26:53.log.bz2
Memory 494 519 429

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18811/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Checkout code: Successful with additional warnings
Report for eigrp_routemap.c | 2 issues
===============================================
< ERROR: Bad function definition - void eigrp_route_map_init() should probably be void eigrp_route_map_init(void)
< #1177: FILE: /tmp/f1-3829/eigrp_routemap.c:1177:

CLANG Static Analyzer Summary

  • Github Pull Request 8040, comparing to Git base SHA bc79672

No Changes in Static Analysis warnings compared to base

2 Static Analyzer issues remaining.

See details at
https://ci1.netdef.org/browse/FRR-FRRPULLREQ-18811/artifact/shared/static_analysis/index.html

@idryzhov idryzhov merged commit 5d421ab into FRRouting:master May 5, 2021
@donaldsharp donaldsharp deleted the fix_distribute branch June 23, 2021 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants