Hi,
setting up a BGP peering to an upstream switch without loopback interface is broken in proxmox 9.3.1. The web ui does not accept the configuration:
In the BGP controller definition (/usr/share/perl5/PVE/Network/SDN/Controllers/BgpPlugin.pm) the loopback setting is marked as optional in the "options" hash, but the actual definition in the properties does mark it the same way:
So without defining a loopback interface the check for the pve-iface format will fail, resulting in the error message mentioned above.
Are loopback interfaces a strict requirement in proxmox 9.3, or this is an error that should be fixed?
setting up a BGP peering to an upstream switch without loopback interface is broken in proxmox 9.3.1. The web ui does not accept the configuration:
Code:
Parameter verification failed. (400)
loopback: invalid format - invalid network interface name ''
In the BGP controller definition (/usr/share/perl5/PVE/Network/SDN/Controllers/BgpPlugin.pm) the loopback setting is marked as optional in the "options" hash, but the actual definition in the properties does mark it the same way:
Code:
sub properties {
return {
'bgp-multipath-as-path-relax' => {
type => 'boolean',
optional => 1,
description =>
'Consider different AS paths of equal length for multipath computation.',
},
ebgp => {
type => 'boolean',
optional => 1,
description => "Enable eBGP (remote-as external).",
},
loopback => {
description => "Name of the loopback/dummy interface that provides the Router-IP.",
type => 'string',
format => 'pve-iface',
maxLength => 15,
},
node => get_standard_option('pve-node'),
};
}
sub options {
return {
'node' => { optional => 0 },
'asn' => { optional => 0 },
'peers' => { optional => 0 },
'bgp-multipath-as-path-relax' => { optional => 1 },
'ebgp' => { optional => 1 },
'ebgp-multihop' => { optional => 1 },
'loopback' => { optional => 1 },
'route-map-in' => { optional => 1 },
'route-map-out' => { optional => 1 },
};
}
So without defining a loopback interface the check for the pve-iface format will fail, resulting in the error message mentioned above.
Are loopback interfaces a strict requirement in proxmox 9.3, or this is an error that should be fixed?