Inconsistent requirements for loopback interface in SDN bgp controllers (new in 9.3)?

Apr 13, 2026
13
3
3
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:

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?
 
This seems to be an oversight in a recent patch, I'll look into it!
 
Thanks for the fast reply (didn't even had time to grab a new coffee...). :)

While you are at it: defining a loopback interface adds a route map for setting the packet source. But the setup only applies to ipv4. We use ipv6 only. This can be added in frr.conf.local manually, but in an optimal world[tm] the controller would have access to the subnet definitions, and can derive whether handling for ipv4 and/or ipv6 is needed. A simplier approach is using checkboxes for ipv4 (default on) and ipv6 (maybe default off).
 
It should also be achievable via the Web UI and the route map feature, although I agree we should do it out of the box. Or do you mean generating peer groups as well?
 
Last edited: