mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
tests: Convert pim_basic to use integrated configuration
Since I am in this test, modifying it let's just convert it to a integrated configuration. Signed-off-by: Donald Sharp <donaldsharp72@gmail.com>
This commit is contained in:
parent
23fcf31358
commit
f5de14db8e
|
@ -1,5 +0,0 @@
|
||||||
router bgp 65001
|
|
||||||
no bgp ebgp-requires-policy
|
|
||||||
neighbor 10.0.30.3 remote-as external
|
|
||||||
neighbor 10.0.30.3 timers 3 10
|
|
||||||
redistribute connected
|
|
32
tests/topotests/pim_basic/r1/frr.conf
Normal file
32
tests/topotests/pim_basic/r1/frr.conf
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
hostname r1
|
||||||
|
!
|
||||||
|
service integrated-vtysh-config
|
||||||
|
!
|
||||||
|
interface r1-eth0
|
||||||
|
ip address 10.0.20.1/24
|
||||||
|
ip igmp
|
||||||
|
ip pim
|
||||||
|
!
|
||||||
|
interface r1-eth1
|
||||||
|
ip address 10.0.30.1/24
|
||||||
|
ip pim
|
||||||
|
!
|
||||||
|
interface r1-eth2
|
||||||
|
ip address 10.0.40.1/24
|
||||||
|
ip igmp
|
||||||
|
ip pim
|
||||||
|
!
|
||||||
|
interface lo
|
||||||
|
ip address 10.254.0.1/32
|
||||||
|
ip pim
|
||||||
|
!
|
||||||
|
router bgp 65001
|
||||||
|
no bgp ebgp-requires-policy
|
||||||
|
neighbor 10.0.30.3 remote-as external
|
||||||
|
neighbor 10.0.30.3 timers 3 10
|
||||||
|
redistribute connected
|
||||||
|
!
|
||||||
|
router pim
|
||||||
|
rp 10.254.0.3
|
||||||
|
join-prune-interval 5
|
||||||
|
!
|
|
@ -1,18 +0,0 @@
|
||||||
hostname r1
|
|
||||||
!
|
|
||||||
interface r1-eth0
|
|
||||||
ip igmp
|
|
||||||
ip pim
|
|
||||||
!
|
|
||||||
interface r1-eth1
|
|
||||||
ip pim
|
|
||||||
!
|
|
||||||
interface r1-eth2
|
|
||||||
ip igmp
|
|
||||||
ip pim
|
|
||||||
!
|
|
||||||
interface lo
|
|
||||||
ip pim
|
|
||||||
!
|
|
||||||
ip pim rp 10.254.0.3
|
|
||||||
ip pim join-prune-interval 5
|
|
|
@ -1,14 +0,0 @@
|
||||||
hostname r1
|
|
||||||
!
|
|
||||||
interface r1-eth0
|
|
||||||
ip address 10.0.20.1/24
|
|
||||||
!
|
|
||||||
interface r1-eth1
|
|
||||||
ip address 10.0.30.1/24
|
|
||||||
!
|
|
||||||
interface r1-eth2
|
|
||||||
ip address 10.0.40.1/24
|
|
||||||
!
|
|
||||||
interface lo
|
|
||||||
ip address 10.254.0.1/32
|
|
||||||
!
|
|
|
@ -1,8 +1,15 @@
|
||||||
hostname r2
|
hostname r2
|
||||||
!
|
!
|
||||||
|
frr version 8.4
|
||||||
|
frr defaults traditional
|
||||||
|
!
|
||||||
|
service integrated-vtysh-config
|
||||||
|
!
|
||||||
interface r2-eth0
|
interface r2-eth0
|
||||||
ip address 10.0.20.2/24
|
ip address 10.0.20.2/24
|
||||||
!
|
!
|
||||||
interface lo
|
interface lo
|
||||||
ip address 10.254.0.2/32
|
ip address 10.254.0.2/32
|
||||||
!
|
!
|
||||||
|
line vty
|
||||||
|
!
|
|
@ -1 +0,0 @@
|
||||||
hostname r2
|
|
|
@ -1,5 +1,8 @@
|
||||||
hostname r3
|
hostname r3
|
||||||
!
|
!
|
||||||
|
!
|
||||||
|
service integrated-vtysh-config
|
||||||
|
!
|
||||||
interface r3-eth0
|
interface r3-eth0
|
||||||
ip address 10.0.40.4/24
|
ip address 10.0.40.4/24
|
||||||
!
|
!
|
|
@ -1 +0,0 @@
|
||||||
hostname r3
|
|
|
@ -1,5 +0,0 @@
|
||||||
router bgp 65003
|
|
||||||
no bgp ebgp-requires-policy
|
|
||||||
neighbor 10.0.30.1 remote-as external
|
|
||||||
neighbor 10.0.30.1 timers 3 10
|
|
||||||
redistribute connected
|
|
26
tests/topotests/pim_basic/rp/frr.conf
Normal file
26
tests/topotests/pim_basic/rp/frr.conf
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
hostname rp
|
||||||
|
!
|
||||||
|
!
|
||||||
|
service integrated-vtysh-config
|
||||||
|
!
|
||||||
|
interface rp-eth0
|
||||||
|
ip address 10.0.30.3/24
|
||||||
|
ip pim
|
||||||
|
!
|
||||||
|
interface lo
|
||||||
|
ip address 10.254.0.3/32
|
||||||
|
ip pim
|
||||||
|
!
|
||||||
|
router bgp 65003
|
||||||
|
no bgp ebgp-requires-policy
|
||||||
|
neighbor 10.0.30.1 remote-as external
|
||||||
|
neighbor 10.0.30.1 timers 3 10
|
||||||
|
redistribute connected
|
||||||
|
!
|
||||||
|
router pim
|
||||||
|
join-prune-interval 5
|
||||||
|
rp 10.254.0.3
|
||||||
|
register-accept-list ACCEPT
|
||||||
|
!
|
||||||
|
ip prefix-list ACCEPT seq 5 permit 10.0.20.0/24 le 32
|
||||||
|
!
|
|
@ -1,13 +0,0 @@
|
||||||
hostname rp
|
|
||||||
!
|
|
||||||
interface rp-eth0
|
|
||||||
ip pim
|
|
||||||
!
|
|
||||||
interface lo
|
|
||||||
ip pim
|
|
||||||
!
|
|
||||||
ip pim join-prune-interval 5
|
|
||||||
ip pim rp 10.254.0.3
|
|
||||||
ip pim register-accept-list ACCEPT
|
|
||||||
|
|
||||||
ip prefix-list ACCEPT seq 5 permit 10.0.20.0/24 le 32
|
|
|
@ -1,8 +0,0 @@
|
||||||
hostname rp
|
|
||||||
!
|
|
||||||
interface rp-eth0
|
|
||||||
ip address 10.0.30.3/24
|
|
||||||
!
|
|
||||||
interface lo
|
|
||||||
ip address 10.254.0.3/32
|
|
||||||
!
|
|
|
@ -71,16 +71,15 @@ def setup_module(mod):
|
||||||
tgen = Topogen(build_topo, mod.__name__)
|
tgen = Topogen(build_topo, mod.__name__)
|
||||||
tgen.start_topology()
|
tgen.start_topology()
|
||||||
|
|
||||||
# For all registered routers, load the zebra configuration file
|
# For all registered routers, load the integrated configuration file
|
||||||
for rname, router in tgen.routers().items():
|
for rname, router in tgen.routers().items():
|
||||||
router.load_config(
|
router.load_frr_config(
|
||||||
TopoRouter.RD_ZEBRA, os.path.join(CWD, "{}/zebra.conf".format(rname))
|
os.path.join(CWD, "{}/frr.conf".format(rname)),
|
||||||
)
|
[
|
||||||
router.load_config(
|
(TopoRouter.RD_ZEBRA, None),
|
||||||
TopoRouter.RD_PIM, os.path.join(CWD, "{}/pimd.conf".format(rname))
|
(TopoRouter.RD_PIM, None),
|
||||||
)
|
(TopoRouter.RD_BGP, None),
|
||||||
router.load_config(
|
],
|
||||||
TopoRouter.RD_BGP, os.path.join(CWD, "{}/bgpd.conf".format(rname))
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# After loading the configurations, this function loads configured daemons.
|
# After loading the configurations, this function loads configured daemons.
|
||||||
|
|
Loading…
Reference in a new issue