[pve-devel] [PATCH V2 pve-manager] API2: Network: display vnets in any_bridge

Alexandre DERUMIER aderumier at odiso.com
Wed Apr 8 18:14:20 CEST 2020


Hi Thomas,

Any news about this patch ? 

This is the last missing part for the beta testing.

I have seen a lot of users on the forum with questions with routed setup, with server at hertzer or other hosting providers.

I really think that bgp-evpn will help a lot (I'll be easy to defined new vnets/subnet with anycast gateway)

they seem to be good candidates for testing sdn :)




----- Mail original -----
De: "Thomas Lamprecht" <t.lamprecht at proxmox.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>, "aderumier" <aderumier at odiso.com>
Envoyé: Vendredi 27 Mars 2020 07:48:07
Objet: Re: [pve-devel] [PATCH V2 pve-manager] API2: Network: display vnets in any_bridge

On 3/26/20 3:07 AM, Alexandre Derumier wrote: 
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com> 
> --- 
> PVE/API2/Network.pm | 8 ++++++++ 
> 1 file changed, 8 insertions(+) 
> 
> diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm 
> index 4c691879..32ab8ebd 100644 
> --- a/PVE/API2/Network.pm 
> +++ b/PVE/API2/Network.pm 
> @@ -18,6 +18,7 @@ use base qw(PVE::RESTHandler); 
> 
> my $have_sdn; 
> eval { 
> + require PVE::Network::SDN; 
> require PVE::Network::SDN::Zones; 
> require PVE::Network::SDN::Controllers; 
> $have_sdn = 1; 
> @@ -246,6 +247,13 @@ __PACKAGE__->register_method({ 
> ($type eq 'bridge' || $type eq 'OVSBridge')); 
> delete $ifaces->{$k} if !$match; 
> } 
> + 
> + if ($have_sdn && $param->{type} eq 'any_bridge') { 
> + my $vnets = PVE::Network::SDN::get_local_vnets(); 
> + map { 
> + $ifaces->{$_} = $vnets->{$_}; 
> + } keys %$vnets; 
> + } 
> } 
> 
> return PVE::RESTHandler::hash_to_array($ifaces, 'iface'); 
> 

nicer, IMO :) Is there still stuff open for pve-network repo, or is 
something coming quite soon? 

Because this needs bumping, and I'd do that depending on how your 
plans about sending new stuff are. 




More information about the pve-devel mailing list