diff options
Diffstat (limited to 'src')
8 files changed, 418 insertions, 0 deletions
diff --git a/src/test/zones/evpn/openfabric_fabric/expected_controller_config b/src/test/zones/evpn/openfabric_fabric/expected_controller_config new file mode 100644 index 0000000..749713a --- /dev/null +++ b/src/test/zones/evpn/openfabric_fabric/expected_controller_config @@ -0,0 +1,74 @@ +frr version 8.5.2 +frr defaults datacenter +hostname localhost +log syslog informational +service integrated-vtysh-config +! +! +vrf vrf_evpn + vni 100 +exit-vrf +! +router bgp 65000 + bgp router-id 172.20.3.1 + no bgp hard-administrative-reset + no bgp default ipv4-unicast + coalesce-time 1000 + no bgp graceful-restart notification + neighbor VTEP peer-group + neighbor VTEP remote-as 65000 + neighbor VTEP bfd + neighbor VTEP update-source dummy_test + neighbor 172.20.3.2 peer-group VTEP + neighbor 172.20.3.3 peer-group VTEP + ! + address-family l2vpn evpn + neighbor VTEP activate + neighbor VTEP route-map MAP_VTEP_IN in + neighbor VTEP route-map MAP_VTEP_OUT out + advertise-all-vni + exit-address-family +exit +! +router bgp 65000 vrf vrf_evpn + bgp router-id 172.20.3.1 + no bgp hard-administrative-reset + no bgp graceful-restart notification +exit +! +route-map MAP_VTEP_IN permit 1 +exit +! +route-map MAP_VTEP_OUT permit 1 +exit +router openfabric test + net 49.0001.1720.2000.3001.00 +exit +! +interface dummy_test + ip router openfabric test + openfabric passive +exit +! +interface ens20 + ip router openfabric test + openfabric hello-interval 1 +exit +! +interface ens21 + ip router openfabric test + openfabric hello-interval 1 +exit +! +access-list pve_openfabric_test_ips permit 172.20.3.0/24 +! +route-map pve_openfabric permit 100 + match ip address pve_openfabric_test_ips + set src 172.20.3.1 +exit +! +ip protocol openfabric route-map pve_openfabric +! +! +line vty +!
\ No newline at end of file diff --git a/src/test/zones/evpn/openfabric_fabric/expected_sdn_interfaces b/src/test/zones/evpn/openfabric_fabric/expected_sdn_interfaces new file mode 100644 index 0000000..3efd220 --- /dev/null +++ b/src/test/zones/evpn/openfabric_fabric/expected_sdn_interfaces @@ -0,0 +1,56 @@ +#version:1 + +auto vnet0 +iface vnet0 + address 10.123.123.1/24 + hwaddress BC:24:11:3B:39:34 + bridge_ports vxlan_vnet0 + bridge_stp off + bridge_fd 0 + mtu 1450 + ip-forward on + arp-accept on + vrf vrf_evpn + +auto vrf_evpn +iface vrf_evpn + vrf-table auto + post-up ip route add vrf vrf_evpn unreachable default metric 4278198272 + +auto vrfbr_evpn +iface vrfbr_evpn + bridge-ports vrfvx_evpn + bridge_stp off + bridge_fd 0 + mtu 1450 + vrf vrf_evpn + +auto vrfvx_evpn +iface vrfvx_evpn + vxlan-id 100 + vxlan-local-tunnelip 172.20.3.1 + bridge-learning off + bridge-arp-nd-suppress on + mtu 1450 + +auto vxlan_vnet0 +iface vxlan_vnet0 + vxlan-id 123456 + vxlan-local-tunnelip 172.20.3.1 + bridge-learning off + bridge-arp-nd-suppress on + mtu 1450 + +auto dummy_test +iface dummy_test inet static + address 172.20.3.1/32 + link-type dummy + ip-forward 1 + +auto ens20 +iface ens20 + ip-forward 1 + +auto ens21 +iface ens21 + ip-forward 1 diff --git a/src/test/zones/evpn/openfabric_fabric/interfaces b/src/test/zones/evpn/openfabric_fabric/interfaces new file mode 100644 index 0000000..1b4384b --- /dev/null +++ b/src/test/zones/evpn/openfabric_fabric/interfaces @@ -0,0 +1,6 @@ +auto vmbr0 +iface vmbr0 inet static + address 172.20.3.1/32 + bridge-ports eth0 + bridge-stp off + bridge-fd 0 diff --git a/src/test/zones/evpn/openfabric_fabric/sdn_config b/src/test/zones/evpn/openfabric_fabric/sdn_config new file mode 100644 index 0000000..60c7405 --- /dev/null +++ b/src/test/zones/evpn/openfabric_fabric/sdn_config @@ -0,0 +1,79 @@ +{ + 'zones' => { + 'ids' => { + 'evpn' => { + 'type' => 'evpn', + 'ipam' => 'pve', + 'mac' => 'BC:24:11:3B:39:34', + 'controller' => 'ctrl', + 'vrf-vxlan' => 100 + } + } + }, + 'vnets' => { + 'ids' => { + 'vnet0' => { + 'zone' => 'evpn', + 'type' => 'vnet', + 'tag' => 123456 + } + } + }, + 'version' => 1, + 'subnets' => { + 'ids' => { + 'evpn-10.123.123.0-24' => { + 'vnet' => 'vnet0', + 'type' => 'subnet', + 'gateway' => '10.123.123.1' + } + } + }, + 'controllers' => { + 'ids' => { + 'ctrl' => { + 'fabric' => 'test', + 'asn' => 65000, + 'type' => 'evpn' + } + } + }, + 'fabrics' => { + 'ids' => { + 'test' => { + 'type' => 'openfabric_fabric', + 'id' => 'test', + 'hello_interval' => 1, + 'ip_prefix' => '172.20.3.0/24', + }, + 'test_localhost' => { + 'interfaces' => [ + 'name=ens20', + 'name=ens21' + ], + 'id' => 'test_localhost', + 'type' => 'openfabric_node', + 'ip' => '172.20.3.1', + }, + 'test_pathfinder' => { + 'id' => 'test_pathfinder', + 'interfaces' => [ + 'name=ens20', + 'name=ens21' + ], + 'ip' => '172.20.3.2', + 'type' => 'openfabric_node', + }, + 'test_raider' => { + 'ip' => '172.20.3.3', + 'type' => 'openfabric_node', + 'interfaces' => [ + 'name=ens21', + 'name=ens20' + ], + 'id' => 'test_raider', + } + } + } + }; + diff --git a/src/test/zones/evpn/ospf_fabric/expected_controller_config b/src/test/zones/evpn/ospf_fabric/expected_controller_config new file mode 100644 index 0000000..c7b2358 --- /dev/null +++ b/src/test/zones/evpn/ospf_fabric/expected_controller_config @@ -0,0 +1,68 @@ +frr version 8.5.2 +frr defaults datacenter +hostname localhost +log syslog informational +service integrated-vtysh-config +! +! +vrf vrf_evpn + vni 100 +exit-vrf +! +router bgp 65000 + bgp router-id 172.20.30.1 + no bgp hard-administrative-reset + no bgp default ipv4-unicast + coalesce-time 1000 + no bgp graceful-restart notification + neighbor VTEP peer-group + neighbor VTEP remote-as 65000 + neighbor VTEP bfd + neighbor VTEP update-source dummy_test + neighbor 172.20.30.2 peer-group VTEP + neighbor 172.20.30.3 peer-group VTEP + ! + address-family l2vpn evpn + neighbor VTEP activate + neighbor VTEP route-map MAP_VTEP_IN in + neighbor VTEP route-map MAP_VTEP_OUT out + advertise-all-vni + exit-address-family +exit +! +router bgp 65000 vrf vrf_evpn + bgp router-id 172.20.30.1 + no bgp hard-administrative-reset + no bgp graceful-restart notification +exit +! +route-map MAP_VTEP_IN permit 1 +exit +! +route-map MAP_VTEP_OUT permit 1 +exit +router ospf + ospf router-id 172.20.30.1 +exit +! +interface dummy_test + ip ospf area 0 + ip ospf passive +exit +! +interface ens19 + ip ospf area 0 +exit +! +access-list pve_ospf_test_ips permit 172.20.30.0/24 +! +route-map pve_ospf permit 100 + match ip address pve_ospf_test_ips + set src 172.20.30.1 +exit +! +ip protocol ospf route-map pve_ospf +! +! +line vty +!
\ No newline at end of file diff --git a/src/test/zones/evpn/ospf_fabric/expected_sdn_interfaces b/src/test/zones/evpn/ospf_fabric/expected_sdn_interfaces new file mode 100644 index 0000000..2543304 --- /dev/null +++ b/src/test/zones/evpn/ospf_fabric/expected_sdn_interfaces @@ -0,0 +1,53 @@ +#version:1 + +auto vnet0 +iface vnet0 + address 10.123.123.1/24 + hwaddress BC:24:11:3B:39:34 + bridge_ports vxlan_vnet0 + bridge_stp off + bridge_fd 0 + mtu 1450 + ip-forward on + arp-accept on + vrf vrf_evpn + +auto vrf_evpn +iface vrf_evpn + vrf-table auto + post-up ip route add vrf vrf_evpn unreachable default metric 4278198272 + +auto vrfbr_evpn +iface vrfbr_evpn + bridge-ports vrfvx_evpn + bridge_stp off + bridge_fd 0 + mtu 1450 + vrf vrf_evpn + +auto vrfvx_evpn +iface vrfvx_evpn + vxlan-id 100 + vxlan-local-tunnelip 172.20.30.1 + bridge-learning off + bridge-arp-nd-suppress on + mtu 1450 + +auto vxlan_vnet0 +iface vxlan_vnet0 + vxlan-id 123456 + vxlan-local-tunnelip 172.20.30.1 + bridge-learning off + bridge-arp-nd-suppress on + mtu 1450 + +auto dummy_test +iface dummy_test inet static + address 172.20.30.1/32 + link-type dummy + ip-forward 1 + +auto ens19 +iface ens19 inet static + address 172.16.3.10/31 + ip-forward 1 diff --git a/src/test/zones/evpn/ospf_fabric/interfaces b/src/test/zones/evpn/ospf_fabric/interfaces new file mode 100644 index 0000000..79ba9c1 --- /dev/null +++ b/src/test/zones/evpn/ospf_fabric/interfaces @@ -0,0 +1,6 @@ +auto vmbr0 +iface vmbr0 inet static + address 172.20.30.1/32 + bridge-ports eth0 + bridge-stp off + bridge-fd 0 diff --git a/src/test/zones/evpn/ospf_fabric/sdn_config b/src/test/zones/evpn/ospf_fabric/sdn_config new file mode 100644 index 0000000..aa17786 --- /dev/null +++ b/src/test/zones/evpn/ospf_fabric/sdn_config @@ -0,0 +1,76 @@ +{ + 'zones' => { + 'ids' => { + 'evpn' => { + 'type' => 'evpn', + 'ipam' => 'pve', + 'mac' => 'BC:24:11:3B:39:34', + 'controller' => 'ctrl', + 'vrf-vxlan' => 100 + } + } + }, + 'vnets' => { + 'ids' => { + 'vnet0' => { + 'zone' => 'evpn', + 'type' => 'vnet', + 'tag' => 123456 + } + } + }, + 'version' => 1, + 'subnets' => { + 'ids' => { + 'evpn-10.123.123.0-24' => { + 'vnet' => 'vnet0', + 'type' => 'subnet', + 'gateway' => '10.123.123.1' + } + } + }, + 'controllers' => { + 'ids' => { + 'ctrl' => { + 'fabric' => 'test', + 'asn' => 65000, + 'type' => 'evpn' + } + } + }, + 'fabrics' => { + 'ids' => { + 'test_pathfinder' => { + 'id' => 'test_pathfinder', + 'interfaces' => [ + 'name=ens19,ip=172.16.3.20/31' + ], + 'ip' => '172.20.30.2', + 'type' => 'ospf_node' + }, + 'test' => { + 'ip_prefix' => '172.20.30.0/24', + 'area' => '0', + 'type' => 'ospf_fabric', + 'id' => 'test', + }, + 'test_localhost' => { + 'id' => 'test_localhost', + 'interfaces' => [ + 'name=ens19,ip=172.16.3.10/31' + ], + 'ip' => '172.20.30.1', + 'type' => 'ospf_node' + }, + 'test_raider' => { + 'type' => 'ospf_node', + 'ip' => '172.20.30.3', + 'id' => 'test_raider', + 'interfaces' => [ + 'name=ens19,ip=172.16.3.30/31' + ] + } + } + } + }; + |
