Skip to content

Commit

Permalink
all-protocol-startup: Add test suite which runs all protocols at once…
Browse files Browse the repository at this point in the history
… and verifies startup and spurious errors of each

Signed-off-by: Martin Winter <[email protected]>
  • Loading branch information
mwinter-osr committed Apr 8, 2017
1 parent 81caf96 commit b83cc07
Show file tree
Hide file tree
Showing 22 changed files with 1,241 additions and 0 deletions.
47 changes: 47 additions & 0 deletions all-protocol-startup/r1/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
log file /tmp/r1-bgpd.log
!
!
router bgp 100
bgp router-id 192.168.0.1
bgp log-neighbor-changes
neighbor 192.168.7.10 remote-as 100
neighbor 192.168.7.20 remote-as 200
neighbor fc00:0:0:8::1000 remote-as 100
neighbor fc00:0:0:8::2000 remote-as 200
!
address-family ipv4 unicast
network 192.168.0.0/24
neighbor 192.168.7.10 route-map bgp-map in
neighbor 192.168.7.10 filter-list bgp-filter-v4 out
neighbor 192.168.7.20 route-map bgp-map in
neighbor 192.168.7.20 filter-list bgp-filter-v4 out
exit-address-family
!
address-family ipv6 unicast
network fc00::/64
neighbor fc00:0:0:8::1000 activate
neighbor fc00:0:0:8::1000 route-map bgp-map in
neighbor fc00:0:0:8::1000 filter-list bgp-filter-v6 out
neighbor fc00:0:0:8::2000 activate
neighbor fc00:0:0:8::2000 route-map bgp-map in
neighbor fc00:0:0:8::2000 filter-list bgp-filter-v6 out
exit-address-family
!
!
ip prefix-list bgp-filter-v4 description dummy-test-prefix-list
ip prefix-list bgp-filter-v4 seq 5 permit 192.168.0.0/24
!
ipv6 prefix-list bgp-filter-v4 seq 5 permit fc00::/64
ipv6 prefix-list bgp-filter-v6 description dummy-test-prefix-list-v6
!
route-map bgp-map permit 10
set community 100:100 additive
set local-preference 100
!
route-map bgp-map permit 20
set metric 10
set local-preference 200
!
line vty
!

21 changes: 21 additions & 0 deletions all-protocol-startup/r1/isisd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
log file /tmp/r1-isisd.log
!
debug isis events
!
!
interface r1-eth5
ip router isis test
isis circuit-type level-1
!
interface r1-eth6
ipv6 router isis test
isis circuit-type level-2-only
!
!
router isis test
net 00.0001.00b0.64bc.43a0.00
metric-style wide
log-adjacency-changes
!
line vty
!
25 changes: 25 additions & 0 deletions all-protocol-startup/r1/ldpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
log file /tmp/r1-ldpd.log
!
debug mpls ldp event
debug mpls ldp zebra
!
!
mpls ldp
router-id 192.168.0.1
!
address-family ipv4
discovery transport-address 192.168.9.1
!
interface r1-eth9
!
!
address-family ipv6
discovery transport-address fc00:0:0:9::1
!
interface r1-eth9
!
!
!
!
line vty
!
16 changes: 16 additions & 0 deletions all-protocol-startup/r1/ospf6d.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
log file /tmp/r1-ospf6d.log
!
debug ospf6 lsa unknown
debug ospf6 zebra
debug ospf6 interface
debug ospf6 neighbor
!
interface r1-eth4
!
router ospf6
router-id 192.168.0.1
log-adjacency-changes
interface r1-eth4 area 0.0.0.0
!
line vty
!
13 changes: 13 additions & 0 deletions all-protocol-startup/r1/ospfd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
log file /tmp/r1-ospfd.log
!
debug ospf event
debug ospf zebra
!
router ospf
ospf router-id 192.168.0.1
log-adjacency-changes
network 192.168.0.0/24 area 0.0.0.0
network 192.168.3.0/24 area 0.0.0.0
!
line vty
!
15 changes: 15 additions & 0 deletions all-protocol-startup/r1/rip_status.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Routing Protocol is "rip"
Sending updates every 30 seconds with +/-50%, next due in XX seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interface is not set
Incoming update filter list for all interface is not set
Default redistribution metric is 1
Redistributing:
Default version control: send version 2, receive version 2
Interface Send Recv Key-chain
r1-eth1 2 2
Routing for Networks:
192.168.1.0/26
Routing Information Sources:
Gateway BadPackets BadRoutes Distance Last Update
Distance: (default is 120)
12 changes: 12 additions & 0 deletions all-protocol-startup/r1/ripd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
log file /tmp/r1-ripd.log
!
debug rip events
debug rip zebra
!
router rip
version 2
network 192.168.1.0/26
!
line vty
!

14 changes: 14 additions & 0 deletions all-protocol-startup/r1/ripng_status.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Routing Protocol is "RIPng"
Sending updates every 30 seconds with +/-50%, next due in XX seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interface is not set
Incoming update filter list for all interface is not set
Default redistribution metric is 1
Redistributing:
Default version control: send version 1, receive version 1
Interface Send Recv
r1-eth2 1 1
Routing for Networks:
fc00:0:0:2::/64
Routing Information Sources:
Gateway BadPackets BadRoutes Distance Last Update
11 changes: 11 additions & 0 deletions all-protocol-startup/r1/ripngd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
log file /tmp/r1-ripngd.log
!
debug ripng events
debug ripng zebra
!
router ripng
network fc00:0:0:2::/64
!
line vty
!

7 changes: 7 additions & 0 deletions all-protocol-startup/r1/show_bgp_ipv4.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BGP table version is 1, local router ID is 192.168.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 192.168.0.0 0.0.0.0 0 32768 i
7 changes: 7 additions & 0 deletions all-protocol-startup/r1/show_bgp_ipv6.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BGP table version is 1, local router ID is 192.168.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> fc00::/64 :: 0 32768 i
21 changes: 21 additions & 0 deletions all-protocol-startup/r1/show_bgp_ipv6_summary.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

IPv6 Unicast Summary:
BGP router identifier 192.168.0.1, local AS number 100 vrf-id 0
BGP table version 1
RIB entries 1, using XXXX bytes of memory
Peers 4, using XXXX KiB of memory

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
fc00:0:0:8::1000 4 100 0 0 0 0 0 never Active
fc00:0:0:8::2000 4 200 0 0 0 0 0 never Active

Total number of neighbors 2

IPv6 Multicast Summary:
No IPv6 Multicast neighbor is configured

IPv6 VPN Summary:
No IPv6 VPN neighbor is configured

IPv6 Encap Summary:
No IPv6 Encap neighbor is configured
15 changes: 15 additions & 0 deletions all-protocol-startup/r1/show_ip_bgp_summary.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
BGP router identifier 192.168.0.1, local AS number 100 vrf-id 0
BGP table version 1
RIB entries 1, using XXXX bytes of memory
Peers 4, using XXXX KiB of memory

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/
PfxRcd
192.168.7.10 4 100 0 0 0 0 0 never
Active
192.168.7.20 4 200 0 0 0 0 0 never
Active
fc00:0:0:8::1000 4 100 0 0 0 0 0 never
Active
fc00:0:0:8::2000 4 200 0 0 0 0 0 never
Active
22 changes: 22 additions & 0 deletions all-protocol-startup/r1/show_ip_ospf_interface.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
r1-eth0 is up
ifindex 2, MTU 1500 bytes, BW XX Mbit <UP,BROADCAST,RUNNING,MULTICAST>
Internet Address 192.168.0.1/24, Broadcast 192.168.0.255, Area 0.0.0.0
MTU mismatch detection:enabled
Router ID 192.168.0.1, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State DR, Priority 1
No backup designated router on this network
Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
Hello due in XX.XXXs
Neighbor Count is 0, Adjacent neighbor count is 0
r1-eth3 is up
ifindex 5, MTU 1500 bytes, BW XX Mbit <UP,BROADCAST,RUNNING,MULTICAST>
Internet Address 192.168.3.1/26, Broadcast 192.168.3.63, Area 0.0.0.0
MTU mismatch detection:enabled
Router ID 192.168.0.1, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State DR, Priority 1
No backup designated router on this network
Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
Hello due in XX.XXXs
Neighbor Count is 0, Adjacent neighbor count is 0
Empty file.
46 changes: 46 additions & 0 deletions all-protocol-startup/r1/show_ipv6_ospf6_interface.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
lo is up, type LOOPBACK
Interface ID: 1
OSPF not enabled on this interface
r1-eth0 is up, type BROADCAST
Interface ID: 2
OSPF not enabled on this interface
r1-eth1 is up, type BROADCAST
Interface ID: 3
OSPF not enabled on this interface
r1-eth2 is up, type BROADCAST
Interface ID: 4
OSPF not enabled on this interface
r1-eth3 is up, type BROADCAST
Interface ID: 5
OSPF not enabled on this interface
r1-eth4 is up, type BROADCAST
Interface ID: 6
Internet Address:
inet : 192.168.4.1/26
inet6: fc00:0:0:4::1/64
inet6: fe80::XXXX:XXXX:XXXX:XXXX/64
Instance ID 0, Interface MTU 1500 (autodetect: 1500)
MTU mismatch detection: enabled
Area ID 0.0.0.0, Cost 10
State DR, Transmit Delay 1 sec, Priority 1
Timer intervals configured:
Hello 10, Dead 40, Retransmit 5
DR: 192.168.0.1 BDR: 0.0.0.0
Number of I/F scoped LSAs is 1
0 Pending LSAs for LSUpdate in Time 00:00:00 [thread off]
0 Pending LSAs for LSAck in Time 00:00:00 [thread off]
r1-eth5 is up, type BROADCAST
Interface ID: 7
OSPF not enabled on this interface
r1-eth6 is up, type BROADCAST
Interface ID: 8
OSPF not enabled on this interface
r1-eth7 is up, type BROADCAST
Interface ID: 9
OSPF not enabled on this interface
r1-eth8 is up, type BROADCAST
Interface ID: 10
OSPF not enabled on this interface
r1-eth9 is up, type BROADCAST
Interface ID: 11
OSPF not enabled on this interface
28 changes: 28 additions & 0 deletions all-protocol-startup/r1/show_isis_interface_detail.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Area test:
Interface: r1-eth5, State: Up, Active, Circuit Id: 0x1
Type: lan, Level: L1, SNPA: XXXX.XXXX.XXXX
Level-1 Information:
Metric: 10, Active neighbors: 0
Hello interval: 3, Holddown count: 10 (pad)
CNSP interval: 10, PSNP interval: 2
LAN Priority: 64, is not DIS
IP Prefix(es):
192.168.5.1/26
IPv6 Link-Locals:
fe80::XXXX:XXXX:XXXX:XXXX/64
IPv6 Prefixes:
fc00:0:0:5::1/64

Interface: r1-eth6, State: Up, Active, Circuit Id: 0x1
Type: lan, Level: L2, SNPA: XXXX.XXXX.XXXX
Level-2 Information:
Metric: 10, Active neighbors: 0
Hello interval: 3, Holddown count: 10 (pad)
CNSP interval: 10, PSNP interval: 2
LAN Priority: 64, is not DIS
IP Prefix(es):
192.168.6.1/26
IPv6 Link-Locals:
fe80::XXXX:XXXX:XXXX:XXXX/64
IPv6 Prefixes:
fc00:0:0:6::1/64
3 changes: 3 additions & 0 deletions all-protocol-startup/r1/show_mpls_ldp_interface.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
AF Interface State Uptime Hello Timers ac
ipv4 r1-eth9 ACTIVE xx:xx:xx 5/15 0
ipv6 r1-eth9 ACTIVE xx:xx:xx 5/15 0
Loading

0 comments on commit b83cc07

Please sign in to comment.