Rename the "domain" property to "fabric_id" in the ISIS controller to
align with the ISIS fabric naming convention and enable sharing of
proxmox-frr ISIS types between both components.
The ISIS fabric and ISIS controller share basic configuration options,
but previously used different property names ("fabric_id" vs "domain").
Since fabrics are hardcoded to use "fabric_id", standardize the
controller to use the same naming.
This change is backwards compatible as:
1) The template series has not yet been merged and will likely merge
alongside this series
2) It is unlikely that libpve-rs-perl and libpve-network-perl would
become out of sync
Signed-off-by: Gabriel Goller <[email protected]>
---
src/PVE/Network/SDN/Controllers/IsisPlugin.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/Network/SDN/Controllers/IsisPlugin.pm
b/src/PVE/Network/SDN/Controllers/IsisPlugin.pm
index 454bdda6d316..81aef2de7e24 100644
--- a/src/PVE/Network/SDN/Controllers/IsisPlugin.pm
+++ b/src/PVE/Network/SDN/Controllers/IsisPlugin.pm
@@ -87,7 +87,7 @@ sub generate_frr_config {
for my $iface (sort @ifaces) {
my $iface_name = $altnames->{$iface} // $iface;
$config->{frr}->{isis}->{interfaces}->{$iface_name} //= {};
- $config->{frr}->{isis}->{interfaces}->{$iface_name}->{domain} =
$isis_domain;
+ $config->{frr}->{isis}->{interfaces}->{$iface_name}->{fabric_id} =
$isis_domain;
$config->{frr}->{isis}->{interfaces}->{$iface_name}->{is_ipv4} = 1;
$config->{frr}->{isis}->{interfaces}->{$iface_name}->{is_ipv6} = 0;
}
--
2.47.3