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

Pim vrf acl fixes (backport #8637) #9186

Merged
merged 7 commits into from
Aug 26, 2021

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Jul 26, 2021

This is an automatic backport of pull request #8637 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

@polychaeta polychaeta added bugfix libfrr pim tests Topotests, make check, etc labels Jul 26, 2021
@mergify mergify bot mentioned this pull request Jul 26, 2021
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!


Pylint found errors in source files changed by this PR:

Pylint report for my_frr/tests/topotests/lib/topotest.py:
************* Module lib.topotest
my_frr/tests/topotests/lib/topotest.py:1937:15: E0602: Undefined variable 'unicode' (undefined-variable)

-----------------------------------
Your code has been rated at 9.95/10



Pylint report for my_frr/tests/topotests/pim_acl/test_pim_acl.py:
************* Module test_pim_acl
my_frr/tests/topotests/pim_acl/test_pim_acl.py:101:0: C0413: Import "import json" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:102:0: C0413: Import "import functools" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:103:0: C0413: Import "import os" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:104:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:105:0: C0413: Import "import pytest" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:106:0: C0413: Import "import re" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:107:0: C0413: Import "import time" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:108:0: C0413: Import "from time import sleep" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:109:0: C0413: Import "import socket" should be placed at the top of the module (wrong-import-position)

-----------------------------------
Your code has been rated at 9.46/10



Pylint report for my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:
************* Module test_pim_vrf
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:88:0: C0413: Import "import json" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:89:0: C0413: Import "import functools" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:90:0: C0413: Import "import os" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:91:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:92:0: C0413: Import "import pytest" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:93:0: C0413: Import "import re" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:94:0: C0413: Import "import time" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:95:0: C0413: Import "from time import sleep" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:96:0: C0413: Import "import socket" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:419:16: E1305: Too many arguments for format string (too-many-format-args)

-----------------------------------
Your code has been rated at 9.28/10




Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/9e46eb84c236f8fd5092cfa03c9c7c95/raw/3a867a64c0275729aba116bba473d6991b42fe10/cr_9186_1627306504.diff | git apply

diff --git a/lib/plist.c b/lib/plist.c
index 2b42c4376..a392bf65f 100644
--- a/lib/plist.c
+++ b/lib/plist.c
@@ -780,11 +780,10 @@ static int prefix_list_entry_match(struct prefix_list_entry *pentry,
 	return 1;
 }
 
-enum prefix_list_type prefix_list_apply_ext(
-	struct prefix_list *plist,
-	const struct prefix_list_entry **which,
-	union prefixconstptr object,
-	bool address_mode)
+enum prefix_list_type
+prefix_list_apply_ext(struct prefix_list *plist,
+		      const struct prefix_list_entry **which,
+		      union prefixconstptr object, bool address_mode)
 {
 	struct prefix_list_entry *pentry, *pbest = NULL;
 
@@ -1300,17 +1299,16 @@ DEFPY (clear_ipv6_prefix_list,
 	return vty_clear_prefix_list(vty, AFI_IP6, prefix_list, prefix_str);
 }
 
-DEFPY (debug_prefix_list_match,
-       debug_prefix_list_match_cmd,
-       "debug prefix-list WORD$prefix-list match <A.B.C.D/M|X:X::X:X/M>"
-       " [address-mode$addr_mode]",
-       DEBUG_STR
-       "Prefix-list test access\n"
-       "Name of a prefix list\n"
-       "Test prefix for prefix list result\n"
-       "Prefix to test in ip prefix-list\n"
-       "Prefix to test in ipv6 prefix-list\n"
-       "Use address matching mode (PIM RP)\n")
+DEFPY(debug_prefix_list_match, debug_prefix_list_match_cmd,
+      "debug prefix-list WORD$prefix-list match <A.B.C.D/M|X:X::X:X/M>"
+      " [address-mode$addr_mode]",
+      DEBUG_STR
+      "Prefix-list test access\n"
+      "Name of a prefix list\n"
+      "Test prefix for prefix list result\n"
+      "Prefix to test in ip prefix-list\n"
+      "Prefix to test in ipv6 prefix-list\n"
+      "Use address matching mode (PIM RP)\n")
 {
 	struct prefix_list *plist;
 	const struct prefix_list_entry *entry = NULL;
@@ -1332,7 +1330,7 @@ DEFPY (debug_prefix_list_match,
 	if (!entry)
 		vty_out(vty, "no match found\n");
 	else {
-		vty_out(vty, "matching entry #%"PRId64": %pFX", entry->seq,
+		vty_out(vty, "matching entry #%" PRId64 ": %pFX", entry->seq,
 			&entry->prefix);
 		if (entry->ge)
 			vty_out(vty, " ge %d", entry->ge);
diff --git a/lib/plist.h b/lib/plist.h
index c9507df57..2df909a43 100644
--- a/lib/plist.h
+++ b/lib/plist.h
@@ -72,10 +72,8 @@ extern struct prefix_list *prefix_list_lookup(afi_t, const char *);
 extern enum prefix_list_type
 prefix_list_apply_ext(struct prefix_list *plist,
 		      const struct prefix_list_entry **matches,
-		      union prefixconstptr prefix,
-		      bool address_mode);
-#define prefix_list_apply(A, B) \
-	prefix_list_apply_ext((A), NULL, (B), false)
+		      union prefixconstptr prefix, bool address_mode);
+#define prefix_list_apply(A, B) prefix_list_apply_ext((A), NULL, (B), false)
 
 extern struct prefix_list *prefix_bgp_orf_lookup(afi_t, const char *);
 extern struct stream *prefix_bgp_orf_entry(struct stream *,
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c
index bda078df8..b78ee7c01 100644
--- a/pimd/pim_rp.c
+++ b/pimd/pim_rp.c
@@ -243,7 +243,8 @@ struct rp_info *pim_rp_find_match_group(struct pim_instance *pim,
 			plist = prefix_list_lookup(AFI_IP, rp_info->plist);
 
 			if (prefix_list_apply_ext(plist, &entry, group, true)
-			    == PREFIX_DENY || !entry)
+				    == PREFIX_DENY
+			    || !entry)
 				continue;
 
 			if (!best) {
diff --git a/pimd/pim_sock.c b/pimd/pim_sock.c
index 05b0f92a4..72c699eb9 100644
--- a/pimd/pim_sock.c
+++ b/pimd/pim_sock.c
@@ -117,9 +117,8 @@ int pim_socket_mcast(int protocol, struct in_addr ifaddr, struct interface *ifp,
 	ret = pim_socket_bind(fd, ifp);
 	if (ret) {
 		close(fd);
-		zlog_warn(
-			"Could not set fd: %d for interface: %s to device",
-			fd, ifp->name);
+		zlog_warn("Could not set fd: %d for interface: %s to device",
+			  fd, ifp->name);
 		return PIM_SOCK_ERR_BIND;
 	}
 #else

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.

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Jul 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-20534/

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 arm8 part 9: Failed (click for details) Topotests Ubuntu 18.04 arm8 part 9: No useful log found
Topotests debian 10 amd64 part 9: Failed (click for details)

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

Topology Tests failed for Topotests debian 10 amd64 part 9:

2021-07-26 14:14:31,572 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:14:54,977 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:26:02,355 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-07-26 14:26:44,488 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 

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

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

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

Topology Tests failed for Topotests Ubuntu 18.04 amd64 part 9:

2021-07-26 14:14:46,840 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:15:05,027 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:17:48,423 ERROR: r2: bgpd left a dead pidfile (pid=18515)
2021-07-26 14:19:11,414 ERROR: r1: zebra left a dead pidfile (pid=20245)
2021-07-26 14:23:14,760 ERROR: r0: bgpd left a dead pidfile (pid=25007)
2021-07-26 14:26:01,291 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-07-26 14:26:40,601 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 


2021-07-26 14:36:07,914 ERROR: r2: zebra left a dead pidfile (pid=5884)

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

Addresssanitizer topotests part 9: Failed (click for details) Addresssanitizer topotests part 9: No useful log found
Topotests Ubuntu 18.04 i386 part 9: Failed (click for details)

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

Topology Tests failed for Topotests Ubuntu 18.04 i386 part 9:

2021-07-26 14:13:45,354 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:14:07,502 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:24:38,604 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-07-26 14:25:18,824 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 

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

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

Warnings Generated during build:

Checkout code: Successful with additional warnings
Topotests Ubuntu 18.04 arm8 part 9: Failed (click for details) Topotests Ubuntu 18.04 arm8 part 9: No useful log found
Topotests debian 10 amd64 part 9: Failed (click for details)

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

Topology Tests failed for Topotests debian 10 amd64 part 9:

2021-07-26 14:14:31,572 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:14:54,977 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:26:02,355 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-07-26 14:26:44,488 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 

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

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

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

Topology Tests failed for Topotests Ubuntu 18.04 amd64 part 9:

2021-07-26 14:14:46,840 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:15:05,027 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:17:48,423 ERROR: r2: bgpd left a dead pidfile (pid=18515)
2021-07-26 14:19:11,414 ERROR: r1: zebra left a dead pidfile (pid=20245)
2021-07-26 14:23:14,760 ERROR: r0: bgpd left a dead pidfile (pid=25007)
2021-07-26 14:26:01,291 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-07-26 14:26:40,601 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 


2021-07-26 14:36:07,914 ERROR: r2: zebra left a dead pidfile (pid=5884)

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

Addresssanitizer topotests part 9: Failed (click for details) Addresssanitizer topotests part 9: No useful log found
Topotests Ubuntu 18.04 i386 part 9: Failed (click for details)

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

Topology Tests failed for Topotests Ubuntu 18.04 i386 part 9:

2021-07-26 14:13:45,354 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:14:07,502 WARNING: vtysh_cmd: failed to convert json output
2021-07-26 14:24:38,604 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-07-26 14:25:18,824 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 

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

<stdin>:1370: trailing whitespace.
#     R1 and R11 - R15. 
<stdin>:2293: trailing whitespace.
# section. 
<stdin>:2307: trailing whitespace.
#     Adding PIM RP in VRF information and verify pimreg 
<stdin>:2310: trailing whitespace.
#     Start multicast stream for group 239.100.0.1 from Host 
<stdin>:2315: trailing whitespace.
#     Start multicast stream for group 239.100.0.1 from Host 
warning: squelched 7 whitespace errors
warning: 12 lines add whitespace errors.
Report for common_cli.c | 2 issues
===============================================
< ERROR: do not initialise globals to NULL
< #62: FILE: /tmp/f1-22880/common_cli.c:62:

Copy link
Member

@donaldsharp donaldsharp left a comment

Choose a reason for hiding this comment

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

NACK this series of commits introduces new cli/functionality

@mergify mergify bot deleted the mergify/bp/stable/8.0/pr-8637 branch July 27, 2021 12:27
@mwinter-osr mwinter-osr restored the mergify/bp/stable/8.0/pr-8637 branch July 27, 2021 13:47
@mwinter-osr
Copy link
Member

Disagree. These are fixes. The functionality was there and used to work in 7.4 It was broken since 7.5

@mwinter-osr mwinter-osr reopened this Jul 27, 2021
@donaldsharp
Copy link
Member

it has new cli this is a forever nack from me

@donaldsharp
Copy link
Member

if you need a specific fix break that shit out

@mergify mergify bot deleted the mergify/bp/stable/8.0/pr-8637 branch July 27, 2021 13:49
@mwinter-osr mwinter-osr restored the mergify/bp/stable/8.0/pr-8637 branch July 27, 2021 13:56
@mwinter-osr
Copy link
Member

Only CLI change is an extra debug command which should (I would say MUST) be allowed for minor changes. The CLI command is required for the unit test.
Debug enhancements (not changes!) should be allowed for minor updates
Re-Opening the PR until this is discussed in community

@mwinter-osr mwinter-osr reopened this Jul 27, 2021
@eqvinox eqvinox force-pushed the mergify/bp/stable/8.0/pr-8637 branch from 1c57ebf to 3f5fe1d Compare July 27, 2021 16:30
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!


Pylint found errors in source files changed by this PR:

Pylint report for my_frr/tests/topotests/lib/topotest.py:
************* Module lib.topotest
my_frr/tests/topotests/lib/topotest.py:1937:15: E0602: Undefined variable 'unicode' (undefined-variable)

-----------------------------------
Your code has been rated at 9.95/10



Pylint report for my_frr/tests/topotests/pim_acl/test_pim_acl.py:
************* Module test_pim_acl
my_frr/tests/topotests/pim_acl/test_pim_acl.py:101:0: C0413: Import "import json" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:102:0: C0413: Import "import functools" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:103:0: C0413: Import "import os" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:104:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:105:0: C0413: Import "import pytest" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:106:0: C0413: Import "import re" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:107:0: C0413: Import "import time" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:108:0: C0413: Import "from time import sleep" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:109:0: C0413: Import "import socket" should be placed at the top of the module (wrong-import-position)

-----------------------------------
Your code has been rated at 9.46/10



Pylint report for my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:
************* Module test_pim_vrf
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:88:0: C0413: Import "import json" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:89:0: C0413: Import "import functools" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:90:0: C0413: Import "import os" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:91:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:92:0: C0413: Import "import pytest" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:93:0: C0413: Import "import re" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:94:0: C0413: Import "import time" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:95:0: C0413: Import "from time import sleep" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:96:0: C0413: Import "import socket" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:419:16: E1305: Too many arguments for format string (too-many-format-args)

-----------------------------------
Your code has been rated at 9.28/10




Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/ca09e1c1e41ebba83f21be2143318708/raw/9b18476bad4d48013aa6460f32bc61e61fd7f0bd/cr_9186_1627403433.diff | git apply

diff --git a/lib/plist.c b/lib/plist.c
index 1ee855a59..16500ecbe 100644
--- a/lib/plist.c
+++ b/lib/plist.c
@@ -780,11 +780,10 @@ static int prefix_list_entry_match(struct prefix_list_entry *pentry,
 	return 1;
 }
 
-enum prefix_list_type prefix_list_apply_ext(
-	struct prefix_list *plist,
-	const struct prefix_list_entry **which,
-	union prefixconstptr object,
-	bool address_mode)
+enum prefix_list_type
+prefix_list_apply_ext(struct prefix_list *plist,
+		      const struct prefix_list_entry **which,
+		      union prefixconstptr object, bool address_mode)
 {
 	struct prefix_list_entry *pentry, *pbest = NULL;
 
diff --git a/lib/plist.h b/lib/plist.h
index c9507df57..2df909a43 100644
--- a/lib/plist.h
+++ b/lib/plist.h
@@ -72,10 +72,8 @@ extern struct prefix_list *prefix_list_lookup(afi_t, const char *);
 extern enum prefix_list_type
 prefix_list_apply_ext(struct prefix_list *plist,
 		      const struct prefix_list_entry **matches,
-		      union prefixconstptr prefix,
-		      bool address_mode);
-#define prefix_list_apply(A, B) \
-	prefix_list_apply_ext((A), NULL, (B), false)
+		      union prefixconstptr prefix, bool address_mode);
+#define prefix_list_apply(A, B) prefix_list_apply_ext((A), NULL, (B), false)
 
 extern struct prefix_list *prefix_bgp_orf_lookup(afi_t, const char *);
 extern struct stream *prefix_bgp_orf_entry(struct stream *,
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c
index bda078df8..b78ee7c01 100644
--- a/pimd/pim_rp.c
+++ b/pimd/pim_rp.c
@@ -243,7 +243,8 @@ struct rp_info *pim_rp_find_match_group(struct pim_instance *pim,
 			plist = prefix_list_lookup(AFI_IP, rp_info->plist);
 
 			if (prefix_list_apply_ext(plist, &entry, group, true)
-			    == PREFIX_DENY || !entry)
+				    == PREFIX_DENY
+			    || !entry)
 				continue;
 
 			if (!best) {
diff --git a/pimd/pim_sock.c b/pimd/pim_sock.c
index 05b0f92a4..72c699eb9 100644
--- a/pimd/pim_sock.c
+++ b/pimd/pim_sock.c
@@ -117,9 +117,8 @@ int pim_socket_mcast(int protocol, struct in_addr ifaddr, struct interface *ifp,
 	ret = pim_socket_bind(fd, ifp);
 	if (ret) {
 		close(fd);
-		zlog_warn(
-			"Could not set fd: %d for interface: %s to device",
-			fd, ifp->name);
+		zlog_warn("Could not set fd: %d for interface: %s to device",
+			  fd, ifp->name);
 		return PIM_SOCK_ERR_BIND;
 	}
 #else

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.

@eqvinox
Copy link
Contributor

eqvinox commented Jul 27, 2021

force-pushed to remove the 3 commits related to the CLI addition

@LabN-CI
Copy link
Collaborator

LabN-CI commented Jul 27, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/9186 1c57ebf
Date 07/27/2021
Start 13:07:54
Finish 13:33:35
Run-Time 25:41
Total 1813
Pass 1813
Fail 0
Valgrind-Errors
Valgrind-Loss
Details vncregress-2021-07-27-13:07:54.txt
Log autoscript-2021-07-27-13:09:08.log.bz2
Memory 475 463 426

For details, please contact louberger

@LabN-CI
Copy link
Collaborator

LabN-CI commented Jul 27, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/9186 3f5fe1d
Date 07/27/2021
Start 15:45:23
Finish 16:11:08
Run-Time 25:45
Total 1813
Pass 1813
Fail 0
Valgrind-Errors
Valgrind-Loss
Details vncregress-2021-07-27-15:45:23.txt
Log autoscript-2021-07-27-15:46:38.log.bz2
Memory 464 494 426

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Jul 28, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

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

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

Addresssanitizer topotests part 9: Failed (click for details) Addresssanitizer topotests part 9: No useful log found
Topotests debian 10 amd64 part 9: Failed (click for details)

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

Topology Tests failed for Topotests debian 10 amd64 part 9:

2021-07-27 18:58:09,466 WARNING: vtysh_cmd: failed to convert json output
2021-07-27 18:58:30,858 WARNING: vtysh_cmd: failed to convert json output
2021-07-27 19:08:44,982 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-07-27 19:09:23,626 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 

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

Topotests Ubuntu 18.04 arm8 part 9: Failed (click for details) Topotests Ubuntu 18.04 arm8 part 9: No useful log found
Topotests Ubuntu 18.04 i386 part 9: Failed (click for details)

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

Topology Tests failed for Topotests Ubuntu 18.04 i386 part 9:

2021-07-27 19:00:10,228 WARNING: vtysh_cmd: failed to convert json output
2021-07-27 19:00:35,927 WARNING: vtysh_cmd: failed to convert json output
2021-07-27 19:10:59,505 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-07-27 19:11:29,425 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 

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

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

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

Topology Tests failed for Topotests Ubuntu 18.04 amd64 part 9:

2021-07-27 19:22:21,199 WARNING: vtysh_cmd: failed to convert json output
2021-07-27 19:22:46,913 WARNING: vtysh_cmd: failed to convert json output
2021-07-27 19:35:24,721 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-07-27 19:35:56,954 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 

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

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

@mwinter-osr mwinter-osr force-pushed the mergify/bp/stable/8.0/pr-8637 branch from 3f5fe1d to 3aefdfa Compare July 29, 2021 15:16
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!


Pylint found errors in source files changed by this PR:

Pylint report for my_frr/tests/topotests/lib/topotest.py:
************* Module lib.topotest
my_frr/tests/topotests/lib/topotest.py:1937:15: E0602: Undefined variable 'unicode' (undefined-variable)

-----------------------------------
Your code has been rated at 9.95/10



Pylint report for my_frr/tests/topotests/pim_acl/test_pim_acl.py:
************* Module test_pim_acl
my_frr/tests/topotests/pim_acl/test_pim_acl.py:101:0: C0413: Import "import json" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:102:0: C0413: Import "import functools" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:103:0: C0413: Import "import os" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:104:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:105:0: C0413: Import "import pytest" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:106:0: C0413: Import "import re" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:107:0: C0413: Import "import time" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:108:0: C0413: Import "from time import sleep" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:109:0: C0413: Import "import socket" should be placed at the top of the module (wrong-import-position)

-----------------------------------
Your code has been rated at 9.46/10



Pylint report for my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:
************* Module test_pim_vrf
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:88:0: C0413: Import "import json" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:89:0: C0413: Import "import functools" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:90:0: C0413: Import "import os" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:91:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:92:0: C0413: Import "import pytest" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:93:0: C0413: Import "import re" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:94:0: C0413: Import "import time" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:95:0: C0413: Import "from time import sleep" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:96:0: C0413: Import "import socket" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:419:16: E1305: Too many arguments for format string (too-many-format-args)

-----------------------------------
Your code has been rated at 9.28/10




Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/8f658e747d840694dbb3607bb4d5dc0d/raw/9b18476bad4d48013aa6460f32bc61e61fd7f0bd/cr_9186_1627571816.diff | git apply

diff --git a/lib/plist.c b/lib/plist.c
index 1ee855a59..16500ecbe 100644
--- a/lib/plist.c
+++ b/lib/plist.c
@@ -780,11 +780,10 @@ static int prefix_list_entry_match(struct prefix_list_entry *pentry,
 	return 1;
 }
 
-enum prefix_list_type prefix_list_apply_ext(
-	struct prefix_list *plist,
-	const struct prefix_list_entry **which,
-	union prefixconstptr object,
-	bool address_mode)
+enum prefix_list_type
+prefix_list_apply_ext(struct prefix_list *plist,
+		      const struct prefix_list_entry **which,
+		      union prefixconstptr object, bool address_mode)
 {
 	struct prefix_list_entry *pentry, *pbest = NULL;
 
diff --git a/lib/plist.h b/lib/plist.h
index c9507df57..2df909a43 100644
--- a/lib/plist.h
+++ b/lib/plist.h
@@ -72,10 +72,8 @@ extern struct prefix_list *prefix_list_lookup(afi_t, const char *);
 extern enum prefix_list_type
 prefix_list_apply_ext(struct prefix_list *plist,
 		      const struct prefix_list_entry **matches,
-		      union prefixconstptr prefix,
-		      bool address_mode);
-#define prefix_list_apply(A, B) \
-	prefix_list_apply_ext((A), NULL, (B), false)
+		      union prefixconstptr prefix, bool address_mode);
+#define prefix_list_apply(A, B) prefix_list_apply_ext((A), NULL, (B), false)
 
 extern struct prefix_list *prefix_bgp_orf_lookup(afi_t, const char *);
 extern struct stream *prefix_bgp_orf_entry(struct stream *,
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c
index bda078df8..b78ee7c01 100644
--- a/pimd/pim_rp.c
+++ b/pimd/pim_rp.c
@@ -243,7 +243,8 @@ struct rp_info *pim_rp_find_match_group(struct pim_instance *pim,
 			plist = prefix_list_lookup(AFI_IP, rp_info->plist);
 
 			if (prefix_list_apply_ext(plist, &entry, group, true)
-			    == PREFIX_DENY || !entry)
+				    == PREFIX_DENY
+			    || !entry)
 				continue;
 
 			if (!best) {
diff --git a/pimd/pim_sock.c b/pimd/pim_sock.c
index 05b0f92a4..72c699eb9 100644
--- a/pimd/pim_sock.c
+++ b/pimd/pim_sock.c
@@ -117,9 +117,8 @@ int pim_socket_mcast(int protocol, struct in_addr ifaddr, struct interface *ifp,
 	ret = pim_socket_bind(fd, ifp);
 	if (ret) {
 		close(fd);
-		zlog_warn(
-			"Could not set fd: %d for interface: %s to device",
-			fd, ifp->name);
+		zlog_warn("Could not set fd: %d for interface: %s to device",
+			  fd, ifp->name);
 		return PIM_SOCK_ERR_BIND;
 	}
 #else

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 Jul 29, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/9186 3aefdfa
Date 07/29/2021
Start 11:20:24
Finish 11:46:13
Run-Time 25:49
Total 1813
Pass 1813
Fail 0
Valgrind-Errors
Valgrind-Loss
Details vncregress-2021-07-29-11:20:24.txt
Log autoscript-2021-07-29-11:21:40.log.bz2
Memory 475 476 427

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Jul 29, 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-20637/

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.

@LabN-CI
Copy link
Collaborator

LabN-CI commented Aug 17, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/9186 3f5fe1d
Date 08/17/2021
Start 18:00:25
Finish 18:26:51
Run-Time 26:26
Total 1813
Pass 1813
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2021-08-17-18:00:25.txt
Log autoscript-2021-08-17-18:01:39.log.bz2
Memory 514 509 425

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Aug 18, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

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

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 i386 part 9: Failed (click for details)

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

Topology Tests failed for Topotests Ubuntu 18.04 i386 part 9:

2021-08-17 22:01:53,163 WARNING: vtysh_cmd: failed to convert json output
2021-08-17 22:02:20,075 WARNING: vtysh_cmd: failed to convert json output
2021-08-17 22:12:29,948 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-08-17 22:13:00,745 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18I386/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 

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

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

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

Topology Tests failed for Topotests debian 10 amd64 part 9:

2021-08-17 23:56:28,561 WARNING: vtysh_cmd: failed to convert json output
2021-08-17 23:56:54,566 WARNING: vtysh_cmd: failed to convert json output
2021-08-18 00:06:55,571 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-08-18 00:07:33,946 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9DEB10AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 

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

Topotests Ubuntu 18.04 arm8 part 9: Failed (click for details) Topotests Ubuntu 18.04 arm8 part 9: No useful log found
Topotests Ubuntu 18.04 amd64 part 9: Failed (click for details)

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

Topology Tests failed for Topotests Ubuntu 18.04 amd64 part 9:

2021-08-18 02:27:00,924 WARNING: vtysh_cmd: failed to convert json output
2021-08-18 02:27:27,882 WARNING: vtysh_cmd: failed to convert json output
2021-08-18 02:31:28,901 ERROR: r5: zebra left a dead pidfile (pid=17133)
2021-08-18 02:38:43,965 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-08-18 02:39:19,995 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 1803, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 344, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPO9U18AMD64/topotests/lib/common_config.py", line 605, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 


2021-08-18 02:40:39,203 ERROR: r1: bgpd left a dead pidfile (pid=25572)

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

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

@mwinter-osr
Copy link
Member

CI:rerun

@mwinter-osr mwinter-osr force-pushed the mergify/bp/stable/8.0/pr-8637 branch from 3f5fe1d to 1e7c70b Compare August 20, 2021 23:17
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!


Pylint found errors in source files changed by this PR:

Pylint report for my_frr/tests/topotests/lib/topotest.py:
************* Module lib.topotest
my_frr/tests/topotests/lib/topotest.py:1937:15: E0602: Undefined variable 'unicode' (undefined-variable)

-----------------------------------
Your code has been rated at 9.95/10



Pylint report for my_frr/tests/topotests/pim_acl/test_pim_acl.py:
************* Module test_pim_acl
my_frr/tests/topotests/pim_acl/test_pim_acl.py:101:0: C0413: Import "import json" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:102:0: C0413: Import "import functools" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:103:0: C0413: Import "import os" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:104:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:105:0: C0413: Import "import pytest" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:106:0: C0413: Import "import re" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:107:0: C0413: Import "import time" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:108:0: C0413: Import "from time import sleep" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:109:0: C0413: Import "import socket" should be placed at the top of the module (wrong-import-position)

-----------------------------------
Your code has been rated at 9.46/10



Pylint report for my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:
************* Module test_pim_vrf
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:88:0: C0413: Import "import json" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:89:0: C0413: Import "import functools" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:90:0: C0413: Import "import os" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:91:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:92:0: C0413: Import "import pytest" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:93:0: C0413: Import "import re" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:94:0: C0413: Import "import time" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:95:0: C0413: Import "from time import sleep" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:96:0: C0413: Import "import socket" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:419:16: E1305: Too many arguments for format string (too-many-format-args)

-----------------------------------
Your code has been rated at 9.28/10




Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/4852dcbae8e64bd0251771529e17c562/raw/3d1a5a0d408fd55c9bc186eea8f3c0c82c307663/cr_9186_1629501492.diff | git apply

diff --git a/lib/plist.c b/lib/plist.c
index 1ee855a59..16500ecbe 100644
--- a/lib/plist.c
+++ b/lib/plist.c
@@ -780,11 +780,10 @@ static int prefix_list_entry_match(struct prefix_list_entry *pentry,
 	return 1;
 }
 
-enum prefix_list_type prefix_list_apply_ext(
-	struct prefix_list *plist,
-	const struct prefix_list_entry **which,
-	union prefixconstptr object,
-	bool address_mode)
+enum prefix_list_type
+prefix_list_apply_ext(struct prefix_list *plist,
+		      const struct prefix_list_entry **which,
+		      union prefixconstptr object, bool address_mode)
 {
 	struct prefix_list_entry *pentry, *pbest = NULL;
 
diff --git a/lib/plist.h b/lib/plist.h
index c9507df57..2df909a43 100644
--- a/lib/plist.h
+++ b/lib/plist.h
@@ -72,10 +72,8 @@ extern struct prefix_list *prefix_list_lookup(afi_t, const char *);
 extern enum prefix_list_type
 prefix_list_apply_ext(struct prefix_list *plist,
 		      const struct prefix_list_entry **matches,
-		      union prefixconstptr prefix,
-		      bool address_mode);
-#define prefix_list_apply(A, B) \
-	prefix_list_apply_ext((A), NULL, (B), false)
+		      union prefixconstptr prefix, bool address_mode);
+#define prefix_list_apply(A, B) prefix_list_apply_ext((A), NULL, (B), false)
 
 extern struct prefix_list *prefix_bgp_orf_lookup(afi_t, const char *);
 extern struct stream *prefix_bgp_orf_entry(struct stream *,
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c
index 0f3d50f6a..bea84d71c 100644
--- a/pimd/pim_rp.c
+++ b/pimd/pim_rp.c
@@ -244,7 +244,8 @@ struct rp_info *pim_rp_find_match_group(struct pim_instance *pim,
 			plist = prefix_list_lookup(AFI_IP, rp_info->plist);
 
 			if (prefix_list_apply_ext(plist, &entry, group, true)
-			    == PREFIX_DENY || !entry)
+				    == PREFIX_DENY
+			    || !entry)
 				continue;
 
 			if (!best) {
diff --git a/pimd/pim_sock.c b/pimd/pim_sock.c
index 05b0f92a4..72c699eb9 100644
--- a/pimd/pim_sock.c
+++ b/pimd/pim_sock.c
@@ -117,9 +117,8 @@ int pim_socket_mcast(int protocol, struct in_addr ifaddr, struct interface *ifp,
 	ret = pim_socket_bind(fd, ifp);
 	if (ret) {
 		close(fd);
-		zlog_warn(
-			"Could not set fd: %d for interface: %s to device",
-			fd, ifp->name);
+		zlog_warn("Could not set fd: %d for interface: %s to device",
+			  fd, ifp->name);
 		return PIM_SOCK_ERR_BIND;
 	}
 #else

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 Aug 20, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/9186 1e7c70b
Date 08/20/2021
Start 19:20:23
Finish 19:46:37
Run-Time 26:14
Total 1813
Pass 1813
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2021-08-20-19:20:23.txt
Log autoscript-2021-08-20-19:21:29.log.bz2
Memory 506 514 373

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Aug 21, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

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

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: Failed

Checkout code: Failed (click for details)

PullReq merge failed. Please rebase your branch:
see merge log in attachment https://ci1.netdef.org/browse/FRR-FRRPULLREQ-21260/artifact/CHECKOUT/ErrorLog/log_merge.txt

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Aug 21, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

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

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: Failed

Checkout code: Failed (click for details)

PullReq merge failed. Please rebase your branch:
see merge log in attachment https://ci1.netdef.org/browse/FRR-FRRPULLREQ-21261/artifact/CHECKOUT/ErrorLog/log_merge.txt

eqvinox and others added 7 commits August 21, 2021 03:17
There's an IGMP socket per interface, so they should be bound to that
interface.  Which also makes IGMP work in VRFs.

Fixes: #7889
Signed-off-by: David Lamparter <[email protected]>
(cherry picked from commit f06c6e3)
... the PIM code is kinda misusing prefix lists to match addresses.
Considering the weird semantics of access-lists, I can't fault it.
However, prefix lists aren't great at matching addresses by default,
since they try to match the prefix length too.  So, here's an "address
match mode" for prefix lists to get that to work more reasonably.

Fixes: #8492
Signed-off-by: David Lamparter <[email protected]>
(cherry picked from commit 2b6b16f)
Signed-off-by: Martin Winter <[email protected]>
(cherry picked from commit 80c5c45)
Signed-off-by: Martin Winter <[email protected]>
(cherry picked from commit fe3c85d)
Signed-off-by: Martin Winter <[email protected]>
(cherry picked from commit 5111848)
When we have a "192.0.2.1 peer 192.0.2.2/32" address on an interface, we
need to (a) recognize the local address as being on the link for our own
packets, and (b) do the IGMP socket lookup with the proper local address
rather than the peer prefix.

Fixes: efe6f18 ("pimd: fix IGMP receive handling")
Cc: Nathan Bahr <[email protected]>
Signed-off-by: David Lamparter <[email protected]>
(cherry picked from commit a2810d3)
@mwinter-osr mwinter-osr force-pushed the mergify/bp/stable/8.0/pr-8637 branch from 1e7c70b to e01cebf Compare August 21, 2021 01:18
@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Aug 21, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

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

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: Failed

Checkout code: Failed (click for details)

PullReq merge failed. Please rebase your branch:
see merge log in attachment https://ci1.netdef.org/browse/FRR-FRRPULLREQ-21262/artifact/CHECKOUT/ErrorLog/log_merge.txt

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!


Pylint found errors in source files changed by this PR:

Pylint report for my_frr/tests/topotests/lib/topotest.py:
************* Module lib.topotest
my_frr/tests/topotests/lib/topotest.py:1934:15: E0602: Undefined variable 'unicode' (undefined-variable)

-----------------------------------
Your code has been rated at 9.95/10



Pylint report for my_frr/tests/topotests/pim_acl/test_pim_acl.py:
************* Module test_pim_acl
my_frr/tests/topotests/pim_acl/test_pim_acl.py:101:0: C0413: Import "import json" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:102:0: C0413: Import "import functools" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:103:0: C0413: Import "import os" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:104:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:105:0: C0413: Import "import pytest" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:106:0: C0413: Import "import re" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:107:0: C0413: Import "import time" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:108:0: C0413: Import "from time import sleep" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_acl/test_pim_acl.py:109:0: C0413: Import "import socket" should be placed at the top of the module (wrong-import-position)

-----------------------------------
Your code has been rated at 9.46/10



Pylint report for my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:
************* Module test_pim_vrf
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:88:0: C0413: Import "import json" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:89:0: C0413: Import "import functools" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:90:0: C0413: Import "import os" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:91:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:92:0: C0413: Import "import pytest" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:93:0: C0413: Import "import re" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:94:0: C0413: Import "import time" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:95:0: C0413: Import "from time import sleep" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:96:0: C0413: Import "import socket" should be placed at the top of the module (wrong-import-position)
my_frr/tests/topotests/pim_igmp_vrf/test_pim_vrf.py:419:16: E1305: Too many arguments for format string (too-many-format-args)

-----------------------------------
Your code has been rated at 9.28/10




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.

@mwinter-osr
Copy link
Member

CI:rerun

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Aug 21, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

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

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: Failed

Checkout code: Failed (click for details)

PullReq merge failed. Please rebase your branch:
see merge log in attachment https://ci1.netdef.org/browse/FRR-FRRPULLREQ-21263/artifact/CHECKOUT/ErrorLog/log_merge.txt

@LabN-CI
Copy link
Collaborator

LabN-CI commented Aug 21, 2021

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result 0
Date 0
Start 0
Finish vncregress-2021-08-20-21:20:23.txt
Run-Time autoscript-2021-08-20-21:21:40.log.bz2
Total 514 503 424
Pass SUCCESS git master a01b086
Fail 08/13/2021
Valgrind-Errors 21:20:20
Valgrind-Loss 21:46:06
Details 25:46
Log 1813
Memory 1813
SUCCESS git merge/9186 e01cebf 0
08/20/2021
21:20:23
21:46:39 vncregress-2021-08-13-21:20:20.txt
26:16 autoscript-2021-08-13-21:21:34.log.bz2
1813 509 517 423
1813

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-21265/

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.

@eqvinox
Copy link
Contributor

eqvinox commented Aug 23, 2021

@donaldsharp
57b6cb6 (#9186) doesn't exist on master because tests have been hacked on quite a bit recently and e.g. the multicast TX/RX tools were cleaned up. Since it only affects the tests I'd keep this here, otherwise we'd need to remove the remaining tests here too — which is pretty much the worst outcome of all.

@donaldsharp
Copy link
Member

I've had a pretty hard stance on backports must be a clean patch into the system. Why should we change this stance?

@mwinter-osr
Copy link
Member

mwinter-osr commented Aug 24, 2021

It is a clean patch. Just uses a an additional library for topotests which is from a commit which didn't go into 8.0

This specific lib (same as it is in master) is now part of this PR as well.

@eqvinox
Copy link
Contributor

eqvinox commented Aug 24, 2021

@donaldsharp sorry, I probably contributed even more confusion.

1771900 is the commit on master that adds the file (tests/topotests/lib/mcast-tester.py) we're discussing here, but obviously we can't carry over the entire commit with MSDP tests, so it's just the one file here.

@eqvinox
Copy link
Contributor

eqvinox commented Aug 24, 2021

$ git show frr/pull/9186:tests/topotests/lib/mcast-tester.py | sha1sum 
2457a9e9b29309200a28b4725e97b89f68fc1d8e  -
$ git show frr/master:tests/topotests/lib/mcast-tester.py | sha1sum        
2457a9e9b29309200a28b4725e97b89f68fc1d8e  -

@eqvinox eqvinox requested a review from donaldsharp August 24, 2021 18:29
@donaldsharp donaldsharp merged commit 7ed45c9 into stable/8.0 Aug 26, 2021
@ton31337 ton31337 deleted the mergify/bp/stable/8.0/pr-8637 branch October 25, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix libfrr pim tests Topotests, make check, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants