Commit aba41ec4 authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

Test cf-ospf-default: Separate OSPFv2 and OSPFv3-IPv4 to two tables

parent fccd21f6
......@@ -3,6 +3,7 @@ log "bird.log" all;
router id 10.0.0.1;
ipv4 table master4;
ipv4 table master5;
ipv6 table master6;
protocol device {
......@@ -12,6 +13,16 @@ protocol device {
protocol kernel kernel4 {
scan time 10;
ipv4 {
table master4;
export where source = RTS_OSPF;
};
}
protocol kernel kernel5 {
scan time 10;
kernel table 100;
ipv4 {
table master5;
export where source = RTS_OSPF;
};
}
......@@ -19,14 +30,21 @@ protocol kernel kernel4 {
protocol kernel kernel6 {
scan time 10;
ipv6 {
table master6;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
ipv4 { table master4; };
route 10.10.0.0/24 via 10.0.1.2;
route 10.10.1.0/24 via 10.0.1.2;
}
protocol static static5 {
ipv4 { table master5; };
route 10.10.0.0/24 via 10.0.1.2;
route 10.10.1.0/24 via 10.0.1.2 { bgp_large_community.add((10,20,30)); bgp_large_community.add((10,(20*3),10)); };
route 10.10.1.0/24 via 10.0.1.2;
}
protocol static static6 {
......@@ -35,8 +53,9 @@ protocol static static6 {
route 2001:db8:10:11::/64 via 2001:db8:1:1::10;
}
protocol ospf v2 ospf2 {
protocol ospf v2 ospf4 {
ipv4 {
table master4;
import all;
export where source = RTS_STATIC;
};
......@@ -50,8 +69,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
export where source = RTS_STATIC;
};
......@@ -67,6 +87,7 @@ protocol ospf v3 ospf4 {
protocol ospf v3 ospf6 {
ipv6 {
table master6;
import all;
export where source = RTS_STATIC;
};
......
......@@ -3,6 +3,7 @@ log "bird.log" all;
router id 10.0.0.2;
ipv4 table master4;
ipv4 table master5;
ipv6 table master6;
protocol device {
......@@ -12,6 +13,16 @@ protocol device {
protocol kernel kernel4 {
scan time 10;
ipv4 {
table master4;
export where source = RTS_OSPF;
};
}
protocol kernel kernel5 {
scan time 10;
kernel table 100;
ipv4 {
table master5;
export where source = RTS_OSPF;
};
}
......@@ -19,12 +30,20 @@ protocol kernel kernel4 {
protocol kernel kernel6 {
scan time 10;
ipv6 {
table master6;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
ipv4 { table master4; };
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 static static5 {
ipv4 { table master5; };
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;
......@@ -37,8 +56,9 @@ protocol static static6 {
route 2001:db8:20:10::/64 via 2001:db8:2:1::10;
}
protocol ospf v2 ospf2 {
protocol ospf v2 ospf4 {
ipv4 {
table master4;
import all;
export where source = RTS_STATIC;
};
......@@ -52,8 +72,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
export where source = RTS_STATIC;
};
......@@ -68,6 +89,7 @@ protocol ospf v3 ospf4 {
protocol ospf v3 ospf6 {
ipv6 {
table master6;
import all;
export where source = RTS_STATIC;
};
......
......@@ -3,6 +3,7 @@ log "bird.log" all;
router id 10.0.0.3;
ipv4 table master4;
ipv4 table master5;
ipv6 table master6;
protocol device {
......@@ -12,6 +13,16 @@ protocol device {
protocol kernel kernel4 {
scan time 10;
ipv4 {
table master4;
export where source = RTS_OSPF;
};
}
protocol kernel kernel5 {
scan time 10;
kernel table 100;
ipv4 {
table master5;
export where source = RTS_OSPF;
};
}
......@@ -19,12 +30,18 @@ protocol kernel kernel4 {
protocol kernel kernel6 {
scan time 10;
ipv6 {
table master6;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
ipv4 { table master4; };
route 10.30.0.0/24 via 10.0.3.2;
}
protocol static static5 {
ipv4 { table master5; };
route 10.30.0.0/24 via 10.0.3.2;
}
......@@ -33,8 +50,9 @@ protocol static static6 {
route 2001:db8:30:10::/64 via 2001:db8:3:1::10;
}
protocol ospf v2 ospf2 {
protocol ospf v2 ospf4 {
ipv4 {
table master4;
import all;
};
......@@ -48,8 +66,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
};
......@@ -65,6 +84,7 @@ protocol ospf v3 ospf4 {
protocol ospf v3 ospf6 {
ipv6 {
table master6;
import all;
};
......
......@@ -3,6 +3,7 @@ log "bird.log" all;
router id 10.0.0.4;
ipv4 table master4;
ipv4 table master5;
ipv6 table master6;
protocol device {
......@@ -12,6 +13,16 @@ protocol device {
protocol kernel kernel4 {
scan time 10;
ipv4 {
table master4;
export where source = RTS_OSPF;
};
}
protocol kernel kernel5 {
scan time 10;
kernel table 100;
ipv4 {
table master5;
export where source = RTS_OSPF;
};
}
......@@ -19,12 +30,21 @@ protocol kernel kernel4 {
protocol kernel kernel6 {
scan time 10;
ipv6 {
table master6;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
ipv4 { table master4; };
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 static static5 {
ipv4 { table master5; };
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; };
......@@ -38,8 +58,9 @@ protocol static static6 {
route 2001:db8:40:10::/64 via 2001:db8:4:1::10;
}
protocol ospf v2 ospf2 {
protocol ospf v2 ospf4 {
ipv4 {
table master4;
import all;
};
......@@ -53,8 +74,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
};
......@@ -70,6 +92,7 @@ protocol ospf v3 ospf4 {
protocol ospf v3 ospf6 {
ipv6 {
table master6;
import all;
};
......
......@@ -3,6 +3,7 @@ log "bird.log" all;
router id 10.0.0.5;
ipv4 table master4;
ipv4 table master5;
ipv6 table master6;
protocol device {
......@@ -12,6 +13,16 @@ protocol device {
protocol kernel kernel4 {
scan time 10;
ipv4 {
table master4;
export where source = RTS_OSPF;
};
}
protocol kernel kernel5 {
scan time 10;
kernel table 100;
ipv4 {
table master5;
export where source = RTS_OSPF;
};
}
......@@ -19,14 +30,21 @@ protocol kernel kernel4 {
protocol kernel kernel6 {
scan time 10;
ipv6 {
table master6;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
ipv4 { table master4; };
route 10.10.0.0/24 via 10.0.1.2;
route 10.10.1.0/24 via 10.0.1.2;
}
protocol static static5 {
ipv4 { table master5; };
route 10.10.0.0/24 via 10.0.1.2;
route 10.10.1.0/24 via 10.0.1.2 { bgp_large_community.add((10,20,30)); bgp_large_community.add((10,(20*3),10)); };
route 10.10.1.0/24 via 10.0.1.2;
}
protocol static static6 {
......@@ -35,8 +53,9 @@ protocol static static6 {
route 2001:db8:10:11::/64 via 2001:db8:1:1::10;
}
protocol ospf v2 ospf2 {
protocol ospf v2 ospf4 {
ipv4 {
table master4;
import all;
};
......@@ -50,8 +69,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
};
......@@ -67,6 +87,7 @@ protocol ospf v3 ospf4 {
protocol ospf v3 ospf6 {
ipv6 {
table master6;
import all;
};
......
......@@ -3,6 +3,7 @@ log "bird.log" all;
router id 10.0.0.6;
ipv4 table master4;
ipv4 table master5;
ipv6 table master6;
protocol device {
......@@ -12,6 +13,16 @@ protocol device {
protocol kernel kernel4 {
scan time 10;
ipv4 {
table master4;
export where source = RTS_OSPF;
};
}
protocol kernel kernel5 {
scan time 10;
kernel table 100;
ipv4 {
table master5;
export where source = RTS_OSPF;
};
}
......@@ -19,12 +30,21 @@ protocol kernel kernel4 {
protocol kernel kernel6 {
scan time 10;
ipv6 {
table master6;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
ipv4 { table master4; };
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 static static5 {
ipv4 { table master5; };
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; };
......@@ -38,8 +58,9 @@ protocol static static6 {
route 2001:db8:40:10::/64 via 2001:db8:4:1::10;
}
protocol ospf v2 ospf2 {
protocol ospf v2 ospf4 {
ipv4 {
table master4;
import all;
};
......@@ -53,8 +74,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
};
......@@ -70,6 +92,7 @@ protocol ospf v3 ospf4 {
protocol ospf v3 ospf6 {
ipv6 {
table master6;
import all;
};
......
......@@ -3,6 +3,7 @@ log "bird.log" all;
router id 10.0.0.7;
ipv4 table master4;
ipv4 table master5;
ipv6 table master6;
protocol device {
......@@ -12,6 +13,16 @@ protocol device {
protocol kernel kernel4 {
scan time 10;
ipv4 {
table master4;
export where source = RTS_OSPF;
};
}
protocol kernel kernel5 {
scan time 10;
kernel table 100;
ipv4 {
table master5;
export where source = RTS_OSPF;
};
}
......@@ -19,12 +30,20 @@ protocol kernel kernel4 {
protocol kernel kernel6 {
scan time 10;
ipv6 {
table master6;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
ipv4 { table master4; };
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 static static5 {
ipv4 { table master5; };
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;
......@@ -37,8 +56,9 @@ protocol static static6 {
route 2001:db8:20:10::/64 via 2001:db8:2:1::10;
}
protocol ospf v2 ospf2 {
protocol ospf v2 ospf4 {
ipv4 {
table master4;
import all;
export where source = RTS_STATIC;
};
......@@ -52,8 +72,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
export where source = RTS_STATIC;
};
......@@ -69,6 +90,7 @@ protocol ospf v3 ospf4 {
protocol ospf v3 ospf6 {
ipv6 {
table master6;
import all;
export where source = RTS_STATIC;
};
......
......@@ -3,6 +3,7 @@ log "bird.log" all;
router id 10.0.0.8;
ipv4 table master4;
ipv4 table master5;
ipv6 table master6;
protocol device {
......@@ -12,6 +13,16 @@ protocol device {
protocol kernel kernel4 {
scan time 10;
ipv4 {
table master4;
export where source = RTS_OSPF;
};
}
protocol kernel kernel5 {
scan time 10;
kernel table 100;
ipv4 {
table master5;
export where source = RTS_OSPF;
};
}
......@@ -19,12 +30,18 @@ protocol kernel kernel4 {
protocol kernel kernel6 {
scan time 10;
ipv6 {
table master6;
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
ipv4 { table master4; };
route 10.30.0.0/24 via 10.0.3.2;
}
protocol static static5 {
ipv4 { table master5; };
route 10.30.0.0/24 via 10.0.3.2;
}
......@@ -33,8 +50,9 @@ protocol static static6 {
route 2001:db8:30:10::/64 via 2001:db8:3:1::10;
}
protocol ospf v2 ospf2 {
protocol ospf v2 ospf4 {
ipv4 {
table master4;
import all;
export where source = RTS_STATIC;
};
......@@ -48,8 +66,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
export where source = RTS_STATIC;
};
......@@ -65,6 +84,7 @@ protocol ospf v3 ospf4 {
protocol ospf v3 ospf6 {
ipv6 {
table master6;
import all;
export where source = RTS_STATIC;
};
......
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