diff options
| author | Stefan Hanreich <s.hanreich@proxmox.com> | 2025-07-16 17:18:13 +0200 | 
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2025-07-16 17:58:58 +0200 | 
| commit | 800e96dcf516f76d735daeb3ad5c85543fee83f8 (patch) | |
| tree | 69873ef81a0252136f7393032846dc163f0f7f46 | |
| parent | 0d455b99f5df9f074ac7e5a658f91c9af3e974c8 (diff) | |
controllers: isis: add altname support
Since this only has an effect on applying the configuration, users
will still need to reapply the configuration when an interface changes
names / altnames. In order to add full altname support for IS-IS,
altname support would need to be implemented in FRR.
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Link: https://lore.proxmox.com/20250716151815.348161-7-s.hanreich@proxmox.com
| -rw-r--r-- | src/PVE/Network/SDN/Controllers/IsisPlugin.pm | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/src/PVE/Network/SDN/Controllers/IsisPlugin.pm b/src/PVE/Network/SDN/Controllers/IsisPlugin.pm index 6e3574d..0ef9fb9 100644 --- a/src/PVE/Network/SDN/Controllers/IsisPlugin.pm +++ b/src/PVE/Network/SDN/Controllers/IsisPlugin.pm @@ -80,9 +80,12 @@ sub generate_controller_config {      my @iface_config = ("ip router isis $isis_domain"); +    my $altnames = PVE::Network::altname_mapping(); +      my @ifaces = PVE::Tools::split_list($isis_ifaces);      for my $iface (sort @ifaces) { -        push(@{ $config->{frr_interfaces}->{$iface} }, @iface_config); +        my $iface_name = $altnames->{$iface} // $iface; +        push(@{ $config->{frr_interfaces}->{$iface_name} }, @iface_config);      }      return $config;  | 
