Skip to content

Commit

Permalink
Merge pull request #17547 from donaldsharp/some_cleanups
Browse files Browse the repository at this point in the history
Some cleanups
  • Loading branch information
mjstapp authored Dec 3, 2024
2 parents 6e1eeed + 0d7d795 commit 426dc2b
Show file tree
Hide file tree
Showing 66 changed files with 16 additions and 154 deletions.
1 change: 0 additions & 1 deletion bgpd/bgp_clist.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "queue.h"
#include "filter.h"
#include "stream.h"
#include "jhash.h"
#include "frrstr.h"

#include "bgpd/bgpd.h"
Expand Down
1 change: 0 additions & 1 deletion tests/topotests/bgp_lu_topo1/R3/bgpd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
log file /tmp/bgpd.log
!
! debug bgp updates
!
Expand Down
1 change: 0 additions & 1 deletion tests/topotests/bgp_lu_topo1/R3/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
log file /tmp/zebra.log
!
! debug zebra events
! debug zebra packet detail
Expand Down
1 change: 0 additions & 1 deletion tests/topotests/bgp_lu_topo2/R3/bgpd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
log file /tmp/bgpd.log
no log unique-id
!
!
Expand Down
1 change: 0 additions & 1 deletion tests/topotests/bgp_lu_topo2/R3/staticd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
log file /tmp/staticd.log
no log unique-id
!
!
Expand Down
1 change: 0 additions & 1 deletion tests/topotests/bgp_lu_topo2/R3/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
log file /tmp/zebra.log
no log unique-id
!
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ def test_bgp_ipv6_table_step1():
link_local_cache = {}
router_list = tgen.routers().values()
for router in router_list:
# router.cmd("vtysh -c 'sh bgp ipv6 json' >/tmp/show_bgp_ipv6_%s.json" % router.name)
ref_file = "{}/{}/show_bgp_ipv6_step1.json".format(CWD, router.name)
expected = json.loads(open(ref_file).read())
replace_link_local(expected, link_local_cache)
Expand Down Expand Up @@ -275,7 +274,6 @@ def test_bgp_ipv6_table_step2():

router_list = tgen.routers().values()
for router in router_list:
# router.cmd("vtysh -c 'sh bgp ipv6 json' >/tmp/show_bgp_ipv6_%s.json" % router.name)
ref_file = "{}/{}/show_bgp_ipv6_step2.json".format(CWD, router.name)
expected = json.loads(open(ref_file).read())
replace_link_local(expected, link_local_cache)
Expand Down Expand Up @@ -327,7 +325,6 @@ def test_bgp_ipv6_table_step3():

router_list = tgen.routers().values()
for router in router_list:
# router.cmd("vtysh -c 'sh bgp ipv6 json' >/tmp/show_bgp_ipv6_%s.json" % router.name)
ref_file = "{}/{}/show_bgp_ipv6_step1.json".format(CWD, router.name)
expected = json.loads(open(ref_file).read())
replace_link_local(expected, link_local_cache)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ def test_bgp_route_server_client_step1():
else:
cmd = "show bgp ipv6 unicast json"

# router.cmd("vtysh -c 'sh bgp ipv6 json' >/tmp/show_bgp_ipv6_%s.json" % router.name)
ref_file = "{}/{}/show_bgp_ipv6_step1.json".format(CWD, router.name)
expected = json.loads(open(ref_file).read())
replace_link_local(expected, link_local_cache)
Expand Down Expand Up @@ -230,7 +229,6 @@ def test_bgp_route_server_client_step2():
else:
cmd = "show bgp ipv6 unicast json"

# router.cmd("vtysh -c 'sh bgp ipv6 json' >/tmp/show_bgp_ipv6_%s.json" % router.name)
ref_file = "{}/{}/show_bgp_ipv6_step2.json".format(CWD, router.name)
expected = json.loads(open(ref_file).read())
replace_link_local(expected, link_local_cache)
Expand Down Expand Up @@ -286,7 +284,6 @@ def test_bgp_route_server_client_step3():
else:
cmd = "show bgp ipv6 unicast json"

# router.cmd("vtysh -c 'sh bgp ipv6 json' >/tmp/show_bgp_ipv6_%s.json" % router.name)
ref_file = "{}/{}/show_bgp_ipv6_step1.json".format(CWD, router.name)
expected = json.loads(open(ref_file).read())
replace_link_local(expected, link_local_cache)
Expand Down
1 change: 0 additions & 1 deletion tests/topotests/bgp_snmp_mplsl3vpn/ce1/bgpd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
log file /tmp/bgpd.log debugging
!
router bgp 65001
timers bgp 3 9
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/bgp_snmp_mplsl3vpn/ce1/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
log file /tmp/zebra.log
log stdout
!
! debug zebra events
! debug zebra dplane
Expand Down
1 change: 0 additions & 1 deletion tests/topotests/bgp_snmp_mplsl3vpn/ce2/bgpd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
log file /tmp/bgpd.log debugging
!
router bgp 65001
bgp router-id 192.168.200.10
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/bgp_snmp_mplsl3vpn/ce2/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
log file /tmp/zebra.log
log stdout
!
! debug zebra events
! debug zebra dplane
Expand Down
1 change: 0 additions & 1 deletion tests/topotests/bgp_snmp_mplsl3vpn/ce3/bgpd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
log file /tmp/bgpd.log debugging
!
router bgp 65001
bgp router-id 192.168.200.10
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/bgp_snmp_mplsl3vpn/ce3/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
log file /tmp/zebra.log
log stdout
!
! debug zebra events
! debug zebra dplane
Expand Down
1 change: 0 additions & 1 deletion tests/topotests/bgp_snmp_mplsl3vpn/ce4/bgpd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
log file /tmp/bgpd.log debugging
!
router bgp 65001
bgp router-id 192.168.200.10
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/bgp_snmp_mplsl3vpn/ce4/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
log file /tmp/zebra.log
log stdout
!
! debug zebra events
! debug zebra dplane
Expand Down
1 change: 0 additions & 1 deletion tests/topotests/bgp_snmp_mplsl3vpn/r1/bgpd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
log file /tmp/bgpd.log debugging
!
router bgp 65000
bgp router-id 10.1.1.1
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/bgp_snmp_mplsl3vpn/r2/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
log file /tmp/zebra.log
log stdout
!
! debug zebra events
! debug zebra dplane
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/bgp_snmp_mplsl3vpn/r3/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
log file /tmp/zebra.log
log stdout
!
! debug zebra events
! debug zebra dplane
Expand Down
1 change: 0 additions & 1 deletion tests/topotests/bgp_snmp_mplsl3vpn/r4/bgpd.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
log file /tmp/bgpd.log debugging
!
router bgp 65000
bgp router-id 10.4.4.4
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/bgp_snmp_mplsl3vpn/r4/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
log file /tmp/zebra.log
log stdout
!
! debug zebra events
! debug zebra dplane
Expand Down
4 changes: 1 addition & 3 deletions tests/topotests/ospf_metric_propagation/h1/frr.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
!
hostname h1
password zebra
log file /tmp/h1-frr.log
!
ip route 0.0.0.0/0 10.0.91.1
!
interface h1-eth0
ip address 10.0.91.2/24
!
!
4 changes: 1 addition & 3 deletions tests/topotests/ospf_metric_propagation/h2/frr.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
!
hostname h2
password zebra
log file /tmp/h2-frr.log
!
ip route 0.0.0.0/0 10.0.94.4
!
interface h2-eth0
ip address 10.0.94.2/24
!
!
5 changes: 1 addition & 4 deletions tests/topotests/ospf_metric_propagation/r1/frr.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
!
hostname r1
password zebra
log file /tmp/r1-frr.log
ip forwarding
!
interface r1-eth0
ip address 10.0.1.1/24
Expand Down Expand Up @@ -93,4 +90,4 @@ route-map costplus permit 30
route-map costplus permit 40
set metric-type type-1
set metric +1
exit
exit
3 changes: 0 additions & 3 deletions tests/topotests/ospf_metric_propagation/r2/frr.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
!
hostname r2
password zebra
log file /tmp/r2-frr.log
ip forwarding
!
interface r2-eth0
ip address 10.0.1.2/24
Expand Down
3 changes: 0 additions & 3 deletions tests/topotests/ospf_metric_propagation/r3/frr.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
!
hostname r3
password zebra
log file /tmp/r3-frr.log
ip forwarding
!
interface r3-eth0
ip address 10.0.3.3/24
Expand Down
3 changes: 0 additions & 3 deletions tests/topotests/ospf_metric_propagation/r4/frr.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
!
hostname r4
password zebra
log file /tmp/r4-frr.log
ip forwarding
!
interface r4-eth0
ip address 10.0.3.4/24
Expand Down
3 changes: 0 additions & 3 deletions tests/topotests/ospf_metric_propagation/ra/frr.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
!
hostname ra
password zebra
log file /tmp/ra-frr.log
ip forwarding
!
interface ra-eth0
ip address 10.0.50.5/24
Expand Down
3 changes: 0 additions & 3 deletions tests/topotests/ospf_metric_propagation/rb/frr.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
!
hostname rb
password zebra
log file /tmp/rb-frr.log
ip forwarding
!
interface rb-eth0
ip address 10.0.50.6/24
Expand Down
3 changes: 0 additions & 3 deletions tests/topotests/ospf_metric_propagation/rc/frr.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
!
hostname rc
password zebra
log file /tmp/rc-frr.log
ip forwarding
!
interface rc-eth0
ip address 10.0.70.7/24
Expand Down
3 changes: 0 additions & 3 deletions tests/topotests/ospf_multi_instance/r1/frr.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
!
hostname r1
password zebra
log file /tmp/r1-frr.log
ip forwarding
!
interface lo
ip address 1.1.1.1/32
Expand Down
3 changes: 0 additions & 3 deletions tests/topotests/ospf_multi_instance/r3/frr.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
!
hostname r3
password zebra
log file /tmp/r3-frr.log
ip forwarding
!
interface lo
ip address 3.3.3.1/32
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/ospf_multi_vrf_bgp_route_leak/r1/frr.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
!
hostname r1
password zebra
log file /tmp/r1-frr.log
!
interface r1-eth0
ip address 10.0.1.1/24
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/ospf_multi_vrf_bgp_route_leak/r2/frr.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
!
hostname r2
password zebra
log file /tmp/r2-frr.log
!
interface r2-eth0
ip address 10.0.2.2/24
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/ospf_multi_vrf_bgp_route_leak/r3/frr.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
!
hostname r3
password zebra
log file /tmp/r3-frr.log
!
interface r3-eth0
ip address 10.0.3.3/24
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/ospf_multi_vrf_bgp_route_leak/r4/frr.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
!
hostname r4
password zebra
log file /tmp/r4-frr.log
!
interface r4-eth0
ip address 10.0.4.4/24
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/ospf_netns_vrf/r1/ospfd.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
!
hostname r1
password zebra
log file /tmp/r1-ospfd.log
!
interface r1-eth0 vrf r1-ospf-cust1
ip ospf hello-interval 1
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/ospf_netns_vrf/r1/zebra.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
! debug zebra event
!
hostname r1
password zebra
log file /tmp/r1-zebra.log
!
interface r1-eth0 vrf r1-ospf-cust1
ip address 10.0.1.1/24
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/ospf_netns_vrf/r2/ospfd.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
!
hostname r2
password zebra
log file /tmp/r2-ospfd.log
!
interface r2-eth0 vrf r2-ospf-cust1
ip ospf hello-interval 1
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/ospf_netns_vrf/r2/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
!
hostname r2
password zebra
log file /tmp/r2-zebra.log
!
interface r2-eth0 vrf r2-ospf-cust1
ip address 10.0.2.1/24
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/ospf_netns_vrf/r3/ospfd.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
!
hostname r3
password zebra
log file /tmp/r3-ospfd.log
!
!
interface r3-eth0 vrf r3-ospf-cust1
Expand Down
2 changes: 0 additions & 2 deletions tests/topotests/ospf_netns_vrf/r3/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
!
hostname r3
password zebra
log file /tmp/r3-zebra.log
!
interface r3-eth0 vrf r3-ospf-cust1
ip address 10.0.3.1/24
Expand Down
3 changes: 0 additions & 3 deletions tests/topotests/ospf_p2mp/r1/frr-p2mp-non-broadcast.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
!
hostname r1
password zebra
log file /tmp/r1-frr.log
ip forwarding
!
interface r1-eth0
ip address 10.1.0.1/24
Expand Down
3 changes: 0 additions & 3 deletions tests/topotests/ospf_p2mp/r1/frr-p2mp.conf
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
!
!log file ospfd.log debug
! debug ospf event
! debug ospf client
! debug ospf lsa
! debug ospf packet all

hostname r1
password zebra
log file /tmp/r1-frr.log
ip forwarding
!
interface r1-eth0
Expand Down
3 changes: 0 additions & 3 deletions tests/topotests/ospf_p2mp/r2/frr-p2mp-non-broadcast.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
!
hostname r2
password zebra
log file /tmp/r1-frr.log
ip forwarding
!
interface r2-eth0
ip address 10.1.0.2/24
Expand Down
4 changes: 0 additions & 4 deletions tests/topotests/ospf_p2mp/r2/frr-p2mp.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
!
!log file ospfd.log debug
! debug ospf event
! debug ospf client
! debug ospf lsa
! debug ospf packet all
!
hostname r2
password zebra
log file /tmp/r1-frr.log
ip forwarding
!
interface r2-eth0
ip address 10.1.0.2/24
Expand Down
Loading

0 comments on commit 426dc2b

Please sign in to comment.