diff options
| author | Stefan Hanreich <s.hanreich@proxmox.com> | 2025-07-16 15:08:04 +0200 | 
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2025-07-17 00:10:39 +0200 | 
| commit | e8321c9eaa6b3844bc15b70fa21341d11a10e103 (patch) | |
| tree | 95613b1cd3297b4ae90e9bd20efdd3e84c5d3765 | |
| parent | 1a7dd44cd17283325c2c945988958c9827847f10 (diff) | |
test: isis: add test for standalone configuration
With how the config generation worked before, it was not possible to
create a standalone isis controller, since the FRR config was only
generated with an existing EVPN controller. Since each controller is
now responsible for creating its own configuration, it is possible to
create a standalone isis controller without having any evpn controller
configured. Add a test that covers that scenario.
Co-authored-by: Gabriel Goller <g.goller@proxmox.com>
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Link: https://lore.proxmox.com/20250716130837.585796-44-g.goller@proxmox.com
4 files changed, 56 insertions, 0 deletions
diff --git a/src/test/zones/evpn/isis_standalone/expected_controller_config b/src/test/zones/evpn/isis_standalone/expected_controller_config new file mode 100644 index 0000000..5c9bf1a --- /dev/null +++ b/src/test/zones/evpn/isis_standalone/expected_controller_config @@ -0,0 +1,22 @@ +frr version 8.5.2 +frr defaults datacenter +hostname localhost +log syslog informational +service integrated-vtysh-config +! +! +interface eth0 + ip router isis isis1 +! +interface eth1 + ip router isis isis1 +! +router isis isis1 + net 47.0023.0000.0000.0000.0000.0000.0000.1900.0004.00 + redistribute ipv4 connected level-1 + redistribute ipv6 connected level-1 + log-adjacency-changes +exit +! +line vty +!
\ No newline at end of file diff --git a/src/test/zones/evpn/isis_standalone/expected_sdn_interfaces b/src/test/zones/evpn/isis_standalone/expected_sdn_interfaces new file mode 100644 index 0000000..edc8ff9 --- /dev/null +++ b/src/test/zones/evpn/isis_standalone/expected_sdn_interfaces @@ -0,0 +1 @@ +#version:1 diff --git a/src/test/zones/evpn/isis_standalone/interfaces b/src/test/zones/evpn/isis_standalone/interfaces new file mode 100644 index 0000000..41ae25f --- /dev/null +++ b/src/test/zones/evpn/isis_standalone/interfaces @@ -0,0 +1,12 @@ +auto vmbr0 +iface vmbr0 inet static +	address 192.168.0.1/24 +	gateway 192.168.0.254 +        bridge-ports eth0 +        bridge-stp off +        bridge-fd 0 + +auto dummy1 +iface dummy1 inet static +        address 10.0.0.1/32 +        link-type dummy
\ No newline at end of file diff --git a/src/test/zones/evpn/isis_standalone/sdn_config b/src/test/zones/evpn/isis_standalone/sdn_config new file mode 100644 index 0000000..331051f --- /dev/null +++ b/src/test/zones/evpn/isis_standalone/sdn_config @@ -0,0 +1,21 @@ +{ +    version => 1, +    vnets => { +    }, +    zones   => { +    }, +    controllers  => { +        ids => { +            localhost => { +                type => "isis", +                'isis-domain' => 'isis1', +                'isis-ifaces' => 'eth1,eth0', +                'isis-net' => "47.0023.0000.0000.0000.0000.0000.0000.1900.0004.00", +		loopback => 'dummy1', +                node => "localhost", +            }, +        }, +    }, +    subnets => { +    }, +}  | 
