Commit f2b52a18 authored by Matous Holinka's avatar Matous Holinka Committed by Ondřej Zajíček
Browse files

mh-ospf-vrf: new test-case "ospf-vrf" added (only single circuit with IPv4 support)

parent b511bf50
log "bird.log" all;
router id 10.0.1.1;
ipv4 table t100v4;
ipv4 table t200v4;
ipv4 table t300v4;
protocol device {
scan time 10;
}
protocol direct dir1 {
vrf "vrf1";
ipv4 { table t100v4; };
}
protocol direct dir2 {
vrf "vrf2";
ipv4 { table t200v4; };
}
protocol direct dir3 {
vrf "vrf3";
ipv4 { table t300v4; };
}
protocol kernel kern1v4 {
ipv4 { table t100v4; export all; };
kernel table 100;
scan time 10;
}
protocol kernel kern2v4 {
ipv4 { table t200v4; export all; };
kernel table 200;
scan time 10;
}
protocol kernel kern3v4 {
ipv4 { table t300v4; export all; };
kernel table 300;
scan time 10;
}
protocol static stat1v4 {
ipv4 { table t100v4; };
route 10.10.0.0/24 via 10.0.1.2;
route 10.10.1.0/24 via 10.0.1.2;
}
protocol static stat2v4 {
ipv4 { table t200v4; };
route 10.10.0.0/24 via 10.0.1.2;
route 10.10.1.0/24 via 10.0.1.2;
}
protocol static stat3v4 {
ipv4 { table t300v4; };
route 10.10.0.0/24 via 10.0.1.2;
route 10.10.1.0/24 via 10.0.1.2;
}
protocol ospf ospfv4 {
vrf "vrf1";
ipv4 { table t100v4; import all; export none; };
area 0 {
interface "ve0" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
};
}
log "bird.log" all;
router id 10.0.1.2;
protocol device {
scan time 10;
}
protocol kernel kern1v4 {
ipv4 { export all; };
kernel table 100;
scan time 10;
}
protocol static stat1v4 {
ipv4;
route 10.50.0.0/24 via 10.0.2.2;
route 10.50.1.0/24 via 10.0.2.2;
route 10.20.0.0/24 via 10.0.2.2;
}
protocol ospf ospfv4 {
vrf "vrf1";
ipv4 { export where source = RTS_STATIC; import all;};
area 0 {
interface "ve0" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
};
}
log "bird.log" all;
router id 10.0.1.3;
protocol device {
scan time 10;
}
protocol kernel kern1v4 {
ipv4 { export all; };
kernel table 100;
scan time 10;
}
protocol static stat1v4 {
ipv4;
route 10.30.0.0/24 via 10.0.3.2;
}
protocol ospf ospfv4 {
vrf "vrf1";
ipv4 { export where source = RTS_STATIC; import all;};
area 0 {
interface "ve0" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
};
}
log "bird.log" all;
router id 10.0.1.3;
protocol device {
scan time 10;
}
protocol kernel kern1v4 {
ipv4 { export all; };
kernel table 100;
scan time 10;
}
protocol static stat1v4 {
ipv4;
route 10.50.0.0/24 via 10.0.4.2 { bgp_local_pref = 500; };
route 10.50.1.0/24 via 10.0.4.2 { bgp_local_pref = 500; };
route 10.40.0.0/24 via 10.0.4.2 { bgp_local_pref = 500; };
route 10.40.1.0/24 via 10.0.4.2 mpls 400 { bgp_local_pref = 500; };
}
protocol ospf ospfv4 {
vrf "vrf1";
ipv4 { export where source = RTS_STATIC; import all;};
area 0 {
interface "ve0" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
};
}
NETLAB_NODES="m1 m2 m3 m4"
netlab_init
vrf m1 vrf1 100
vrf m2 vrf1 100
vrf m3 vrf1 100
vrf m4 vrf1 100
if_dummy m1/vrf1 ve0 10.0.1 2001:db8:0:1
if_dummy m2/vrf1 ve0 10.1.1 2001:db8:1:1
if_dummy m3/vrf1 ve0 10.1.2 2001:db8:1:2
if_dummy m4/vrf1 ve0 10.1.3 2001:db8:1:3
if_veth m1/vrf1 ve1 m2/vrf1 ve2 10.1.4 2001:db8:1:4
if_veth m2/vrf1 ve1 m3/vrf1 ve2 10.1.5 2001:db8:1:5
if_veth m3/vrf1 ve1 m4/vrf1 ve2 10.1.6 2001:db8:1:6
if_veth m4/vrf1 ve1 m1/vrf1 ve2 10.1.7 2001:db8:1:7
netlab_start
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment