mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 08:50:26 +00:00
tests: Add tests to rip and ripngd to show func works
Add some basic tests to show that network and passive-interface commands work with interface names in rip and ripngd. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
f7688027d8
commit
cfe9a58785
@ -8,8 +8,14 @@ Routing Protocol is "rip"
|
||||
Default version control: send version 2, receive version 2
|
||||
Interface Send Recv Key-chain
|
||||
r1-eth1 2 2
|
||||
r1-eth2 2 2
|
||||
r1-eth3 2 2
|
||||
Routing for Networks:
|
||||
193.1.1.0/26
|
||||
r1-eth2
|
||||
r1-eth3
|
||||
Passive Interface(s):
|
||||
r1-eth3
|
||||
Routing Information Sources:
|
||||
Gateway BadPackets BadRoutes Distance Last Update
|
||||
193.1.1.2 0 0 120 XX:XX:XX
|
||||
|
@ -4,6 +4,9 @@ router rip
|
||||
timers basic 5 180 5
|
||||
version 2
|
||||
network 193.1.1.0/26
|
||||
network r1-eth2
|
||||
network r1-eth3
|
||||
passive-interface r1-eth3
|
||||
!
|
||||
line vty
|
||||
!
|
||||
|
@ -6,5 +6,7 @@ Sub-codes:
|
||||
Network Next Hop Metric From Tag Time
|
||||
R(n) 192.168.2.0/24 193.1.1.2 3 193.1.1.2 0 XX:XX
|
||||
R(n) 192.168.3.0/24 193.1.1.2 3 193.1.1.2 0 XX:XX
|
||||
C(i) 192.168.98.0/24 0.0.0.0 1 self 0
|
||||
C(i) 192.168.99.0/24 0.0.0.0 1 self 0
|
||||
C(i) 193.1.1.0/26 0.0.0.0 1 self 0
|
||||
R(n) 193.1.2.0/24 193.1.1.2 2 193.1.1.2 0 XX:XX
|
||||
|
@ -5,6 +5,13 @@ hostname r1
|
||||
interface r1-eth0
|
||||
ip address 192.168.1.1/24
|
||||
!
|
||||
interface r1-eth2
|
||||
ip address 192.168.99.1/24
|
||||
!
|
||||
interface r1-eth3
|
||||
ip address 192.168.98.1/24
|
||||
!
|
||||
|
||||
interface r1-eth1
|
||||
description to sw2 - RIPv2 interface
|
||||
ip address 193.1.1.1/26
|
||||
|
@ -14,5 +14,6 @@ Routing Protocol is "rip"
|
||||
193.1.2.0/24
|
||||
Routing Information Sources:
|
||||
Gateway BadPackets BadRoutes Distance Last Update
|
||||
193.1.1.1 0 0 120 XX:XX:XX
|
||||
193.1.2.2 0 0 120 XX:XX:XX
|
||||
Distance: (default is 120)
|
||||
|
@ -6,5 +6,7 @@ Sub-codes:
|
||||
Network Next Hop Metric From Tag Time
|
||||
R(n) 192.168.2.0/24 193.1.2.2 2 193.1.2.2 0 XX:XX
|
||||
R(n) 192.168.3.0/24 193.1.2.2 2 193.1.2.2 0 XX:XX
|
||||
R(n) 192.168.98.0/24 193.1.1.1 2 193.1.1.1 0 XX:XX
|
||||
R(n) 192.168.99.0/24 193.1.1.1 2 193.1.1.1 0 XX:XX
|
||||
C(i) 193.1.1.0/26 0.0.0.0 1 self 0
|
||||
C(i) 193.1.2.0/24 0.0.0.0 1 self 0
|
||||
|
@ -1,2 +1,4 @@
|
||||
R>* 192.168.2.0/24 [120/2] via 193.1.2.2, r2-eth1, weight 1
|
||||
R>* 192.168.3.0/24 [120/2] via 193.1.2.2, r2-eth1, weight 1
|
||||
R>* 192.168.98.0/24 [120/2] via 193.1.1.1, r2-eth0, weight 1
|
||||
R>* 192.168.99.0/24 [120/2] via 193.1.1.1, r2-eth0, weight 1
|
||||
|
@ -6,5 +6,7 @@ Sub-codes:
|
||||
Network Next Hop Metric From Tag Time
|
||||
S(r) 192.168.2.0/24 192.168.3.10 1 self 0
|
||||
C(r) 192.168.3.0/24 0.0.0.0 1 self 0
|
||||
R(n) 192.168.98.0/24 193.1.2.1 3 193.1.2.1 0 XX:XX
|
||||
R(n) 192.168.99.0/24 193.1.2.1 3 193.1.2.1 0 XX:XX
|
||||
R(n) 193.1.1.0/26 193.1.2.1 2 193.1.2.1 0 XX:XX
|
||||
C(i) 193.1.2.0/24 0.0.0.0 1 self 0
|
||||
|
@ -1 +1,3 @@
|
||||
R>* 192.168.98.0/24 [120/3] via 193.1.2.1, r3-eth1, weight 1
|
||||
R>* 192.168.99.0/24 [120/3] via 193.1.2.1, r3-eth1, weight 1
|
||||
R>* 193.1.1.0/26 [120/2] via 193.1.2.1, r3-eth1, weight 1
|
||||
|
@ -91,6 +91,12 @@ class NetworkTopo(Topo):
|
||||
switch[4] = self.addSwitch("sw4", cls=topotest.LegacySwitch)
|
||||
self.addLink(switch[4], router[3], intfName2="r3-eth0")
|
||||
|
||||
switch[5] = self.addSwitch("sw5", cls=topotest.LegacySwitch)
|
||||
self.addLink(switch[5], router[1], intfName2="r1-eth2")
|
||||
|
||||
switch[6] = self.addSwitch("sw6", cls=topotest.LegacySwitch)
|
||||
self.addLink(switch[6], router[1], intfName2="r1-eth3")
|
||||
|
||||
|
||||
#####################################################
|
||||
##
|
||||
|
@ -8,8 +8,12 @@ Routing Protocol is "RIPng"
|
||||
Default version control: send version 1, receive version 1
|
||||
Interface Send Recv
|
||||
r1-eth1 1 1
|
||||
r1-eth2 1 1
|
||||
r1-eth3 1 1
|
||||
Routing for Networks:
|
||||
fc00:5::/64
|
||||
r1-eth2
|
||||
r1-eth3
|
||||
Routing Information Sources:
|
||||
Gateway BadPackets BadRoutes Distance Last Update
|
||||
fe80::XXXX:XXXX:XXXX:XXXX
|
||||
|
@ -7,6 +7,9 @@ debug ripng zebra
|
||||
router ripng
|
||||
timers basic 5 180 5
|
||||
network fc00:5::/64
|
||||
network r1-eth2
|
||||
network r1-eth3
|
||||
passive-interface r1-eth3
|
||||
!
|
||||
line vty
|
||||
!
|
||||
|
@ -12,3 +12,7 @@ R(n) fc00:7::/64
|
||||
fe80::XXXX:XXXX:XXXX:XXXX r1-eth1 3 0 XX:XX
|
||||
R(n) fc00:7:1111::/64
|
||||
fe80::XXXX:XXXX:XXXX:XXXX r1-eth1 3 0 XX:XX
|
||||
C(i) fc00:98:0:1::/64
|
||||
:: self 1 0
|
||||
C(i) fc00:99:0:1::/64
|
||||
:: self 1 0
|
||||
|
@ -10,6 +10,12 @@ interface r1-eth1
|
||||
ipv6 address fc00:5::1/64
|
||||
no link-detect
|
||||
!
|
||||
interface r1-eth2
|
||||
ipv6 address fc00:99:0:1::1/64
|
||||
!
|
||||
interface r1-eth3
|
||||
ipv6 address fc00:98:0:1::1/64
|
||||
!
|
||||
ip forwarding
|
||||
ipv6 forwarding
|
||||
!
|
||||
|
@ -12,3 +12,7 @@ R(n) fc00:7::/64
|
||||
fe80::XXXX:XXXX:XXXX:XXXX r2-eth1 2 0 XX:XX
|
||||
R(n) fc00:7:1111::/64
|
||||
fe80::XXXX:XXXX:XXXX:XXXX r2-eth1 2 0 XX:XX
|
||||
R(n) fc00:98:0:1::/64
|
||||
fe80::XXXX:XXXX:XXXX:XXXX r2-eth0 2 0 XX:XX
|
||||
R(n) fc00:99:0:1::/64
|
||||
fe80::XXXX:XXXX:XXXX:XXXX r2-eth0 2 0 XX:XX
|
||||
|
@ -1,2 +1,4 @@
|
||||
R>* fc00:7::/64 [120/2] via fe80::XXXX:XXXX:XXXX:XXXX, r2-eth1, weight 1
|
||||
R>* fc00:7:1111::/64 [120/2] via fe80::XXXX:XXXX:XXXX:XXXX, r2-eth1, weight 1
|
||||
R>* fc00:98:0:1::/64 [120/2] via fe80::XXXX:XXXX:XXXX:XXXX, r2-eth0, weight 1
|
||||
R>* fc00:99:0:1::/64 [120/2] via fe80::XXXX:XXXX:XXXX:XXXX, r2-eth0, weight 1
|
||||
|
@ -12,3 +12,7 @@ C(r) fc00:7::/64
|
||||
:: self 1 0
|
||||
S(r) fc00:7:1111::/64
|
||||
:: self 1 0
|
||||
R(n) fc00:98:0:1::/64
|
||||
fe80::XXXX:XXXX:XXXX:XXXX r3-eth1 3 0 XX:XX
|
||||
R(n) fc00:99:0:1::/64
|
||||
fe80::XXXX:XXXX:XXXX:XXXX r3-eth1 3 0 XX:XX
|
||||
|
@ -1 +1,3 @@
|
||||
R>* fc00:5::/64 [120/2] via fe80::XXXX:XXXX:XXXX:XXXX, r3-eth1, weight 1
|
||||
R>* fc00:98:0:1::/64 [120/3] via fe80::XXXX:XXXX:XXXX:XXXX, r3-eth1, weight 1
|
||||
R>* fc00:99:0:1::/64 [120/3] via fe80::XXXX:XXXX:XXXX:XXXX, r3-eth1, weight 1
|
||||
|
@ -92,6 +92,11 @@ class NetworkTopo(Topo):
|
||||
switch[4] = self.addSwitch("sw4", cls=topotest.LegacySwitch)
|
||||
self.addLink(switch[4], router[3], intfName2="r3-eth0")
|
||||
|
||||
switch[5] = self.addSwitch("sw5", cls=topotest.LegacySwitch)
|
||||
self.addLink(switch[5], router[1], intfName2="r1-eth2")
|
||||
switch[6] = self.addSwitch("sw6", cls=topotest.LegacySwitch)
|
||||
self.addLink(switch[6], router[1], intfName2="r1-eth3")
|
||||
|
||||
|
||||
#####################################################
|
||||
##
|
||||
|
Loading…
Reference in New Issue
Block a user