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

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

parent 25266fd5
......@@ -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,17 +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 {
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 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;
}
protocol static static6 {
......@@ -38,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;
};
......@@ -65,8 +81,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
export where source = RTS_STATIC;
};
......@@ -94,6 +111,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;
};
......@@ -66,8 +86,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
export where source = RTS_STATIC;
};
......@@ -96,6 +117,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;
};
......@@ -59,8 +77,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
};
......@@ -87,6 +106,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;
};
......@@ -66,8 +87,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
};
......@@ -96,6 +118,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;
};
......@@ -61,8 +80,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
};
......@@ -89,6 +109,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;
};
......@@ -66,8 +87,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
};
......@@ -96,6 +118,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;
};
......@@ -64,8 +84,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
export where source = RTS_STATIC;
};
......@@ -93,6 +114,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;
};
......@@ -62,8 +80,9 @@ protocol ospf v2 ospf2 {
};
}
protocol ospf v3 ospf4 {
protocol ospf v3 ospf5 {
ipv4 {
table master5;
import all;
export where source = RTS_STATIC;
};
......@@ -93,6 +112,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