all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Rémi PAETA" <remi.paeta@comaite.com>
To: pve-devel@lists.proxmox.com
Subject: [RFC PATCH v2 network 03/15] sdn: ovn: sync the northbound database on reload
Date: Fri, 27 Nov 2026 11:28:24 +0100	[thread overview]
Message-ID: <20261127102836.313797-4-remi.paeta@comaite.com> (raw)
In-Reply-To: <20261127102836.313797-1-remi.paeta@comaite.com>

The logical switches of the vnets get created, updated and deleted when
the SDN configuration is applied. Since the northbound database is
shared by all nodes, this is done once for the whole cluster in the
reload API call, before the per-node reload workers get started.

Only objects tagged with the pve-sdn-* external_ids are touched, so an
OVN deployment can be shared with other consumers. A logical switch
named like a vnet but not managed by PVE is refused instead of taken
over.

Ports of guests that do not exist anymore get removed, as do all
managed objects of an OVN controller that was removed from the
configuration. Ports whose interface is not on their vnet in the guest
configuration anymore, because it got removed or moved to another
bridge, get removed too, unless they are still up: on hotplug, the port
gets created before the interface is written to the guest
configuration.

The guest list is read after the ports, so that the ports of guests
started in the meantime are known, and the sync fails instead of
deleting all guest ports if pmxcfs cannot provide the guest list. Ports
are deleted by UUID, so that a port re-created in the meantime by a
guest start is left alone, and objects that are already gone or that
exist already do not fail the whole transaction.

Port names read from the database are checked before they are used as
command arguments, as other users of a shared database can write them.

Signed-off-by: Rémi PAETA <remi.paeta@comaite.com>
---
Changes since v1:
- read the guest list after the ports, and fail the sync instead of
  deleting all guest ports if pmxcfs cannot provide it
- delete ports by UUID, so that a port re-created by a guest start
  during the sync is left alone
- use --if-exists/--may-exist, so that an object deleted or created
  during the sync does not fail the whole transaction
- also delete ports of guests that do not exist anymore while still up
- ignore, with a warning, port rows whose name is not a valid interface
  name, as other users of a shared database can write them

 src/PVE/API2/Network/SDN.pm |   8 +
 src/PVE/Network/SDN.pm      |  16 ++
 src/PVE/Network/SDN/Ovn.pm  | 295 ++++++++++++++++++++++++++++++++++++
 src/test/run_test_ovn.pl    | 220 +++++++++++++++++++++++++++
 4 files changed, 539 insertions(+)

diff --git a/src/PVE/API2/Network/SDN.pm b/src/PVE/API2/Network/SDN.pm
index e3c8d9d..c4522ad 100644
--- a/src/PVE/API2/Network/SDN.pm
+++ b/src/PVE/API2/Network/SDN.pm
@@ -318,9 +318,11 @@ __PACKAGE__->register_method({
 
         my $previous_config_has_frr;
         my $new_config_has_frr;
+        my $previous_running_config;
 
         PVE::Network::SDN::lock_sdn_config(
             sub {
+                $previous_running_config = PVE::Network::SDN::running_config();
                 $previous_config_has_frr = PVE::Network::SDN::running_config_has_frr();
                 PVE::Network::SDN::commit_config();
                 $new_config_has_frr = PVE::Network::SDN::running_config_has_frr();
@@ -338,6 +340,12 @@ __PACKAGE__->register_method({
         my $code = sub {
             $rpcenv->{type} = 'priv'; # to start tasks in background
             PVE::Cluster::check_cfs_quorum();
+
+            # the OVN northbound database is shared by all nodes, so it is
+            # synced once for the whole cluster
+            eval { PVE::Network::SDN::sync_ovn_northbound($previous_running_config) };
+            warn "syncing OVN northbound database failed - $@" if $@;
+
             my $nodelist = PVE::Cluster::get_nodelist();
             for my $node (@$nodelist) {
                 my $pid = eval { $create_reload_network_worker->($node, $regenerate_frr) };
diff --git a/src/PVE/Network/SDN.pm b/src/PVE/Network/SDN.pm
index d93ccc2..28cf8e6 100644
--- a/src/PVE/Network/SDN.pm
+++ b/src/PVE/Network/SDN.pm
@@ -28,6 +28,7 @@ use PVE::Network::SDN::Subnets;
 use PVE::Network::SDN::Dhcp;
 use PVE::Network::SDN::Frr;
 use PVE::Network::SDN::Fabrics;
+use PVE::Network::SDN::Ovn;
 use PVE::Network::SDN::RouteMaps;
 use PVE::Network::SDN::PrefixLists;
 
@@ -663,6 +664,21 @@ sub canonicalize_property_strings {
     ];
 }
 
+=head3 sync_ovn_northbound(\%previous_running_config)
+
+Reconciles the OVN northbound databases with the current running
+configuration. C<\%previous_running_config> is the running configuration before
+the last commit, so that the objects of removed OVN controllers get cleaned up.
+
+=cut
+
+sub sync_ovn_northbound {
+    my ($previous_running_config) = @_;
+
+    my $running_config = PVE::Network::SDN::running_config();
+    PVE::Network::SDN::Ovn::sync_northbound($previous_running_config, $running_config);
+}
+
 sub encode_value {
     my ($type, $key, $value) = @_;
 
diff --git a/src/PVE/Network/SDN/Ovn.pm b/src/PVE/Network/SDN/Ovn.pm
index b217cc3..6e71be3 100644
--- a/src/PVE/Network/SDN/Ovn.pm
+++ b/src/PVE/Network/SDN/Ovn.pm
@@ -2,6 +2,9 @@ package PVE::Network::SDN::Ovn;
 
 use v5.36;
 
+use JSON;
+
+use PVE::Cluster;
 use PVE::Network;
 use PVE::Tools qw(run_command);
 
@@ -22,6 +25,202 @@ my $EXT_ZONE = 'pve-sdn-zone';
 my $EXT_VNET = 'pve-sdn-vnet';
 my $EXT_VMID = 'pve-sdn-vmid';
 
+=head3 ovn_controllers(\%running_cfg)
+
+Returns a hash of all controllers of type C<ovn> in C<\%running_cfg>, keyed by
+their ID.
+
+=cut
+
+sub ovn_controllers {
+    my ($running_cfg) = @_;
+
+    my $controllers = $running_cfg->{controllers}->{ids} // {};
+
+    return {
+        map { $_ => $controllers->{$_} }
+        grep { $controllers->{$_}->{type} eq 'ovn' } keys %$controllers
+    };
+}
+
+=head3 desired_state(\%running_cfg)
+
+Computes the northbound objects that should exist for C<\%running_cfg>, keyed by
+OVN controller ID. Every vnet of an C<ovn> zone maps to a logical switch of the
+same name.
+
+=cut
+
+sub desired_state {
+    my ($running_cfg) = @_;
+
+    my $zones = $running_cfg->{zones}->{ids} // {};
+    my $vnets = $running_cfg->{vnets}->{ids} // {};
+
+    my $state = {};
+    $state->{$_} = { switches => {} } for keys ovn_controllers($running_cfg)->%*;
+
+    for my $vnetid (sort keys %$vnets) {
+        my $zoneid = $vnets->{$vnetid}->{zone} or next;
+        my $zone = $zones->{$zoneid} or next;
+        next if $zone->{type} ne 'ovn';
+
+        my $controllerid = $zone->{controller};
+        next if !$controllerid || !$state->{$controllerid};
+
+        $state->{$controllerid}->{switches}->{$vnetid} = {
+            external_ids => {
+                $EXT_CONTROLLER => $controllerid,
+                $EXT_ZONE => $zoneid,
+                $EXT_VNET => $vnetid,
+            },
+        };
+    }
+
+    return $state;
+}
+
+=head3 valid_port_row(\%port)
+
+Returns whether the name of the northbound port row C<\%port> has the expected
+format. Names written by anyone with access to the shared database end up in
+command arguments.
+
+=cut
+
+sub valid_port_row {
+    my ($port) = @_;
+
+    return ($port->{name} // '') =~ m/^[A-Za-z0-9][A-Za-z0-9_.-]*\z/ ? 1 : 0;
+}
+
+=head3 sync_commands($controllerid, \%desired, \@switches, \@ports, \%vmlist, \%nics)
+
+Returns the list of C<ovn-nbctl> commands (each an array reference) that turn
+the current northbound content (C<\@switches> and C<\@ports>, as returned by
+C<list_rows>) into C<\%desired>, the entry of C<desired_state> for
+C<$controllerid>.
+
+Ports of guests that are not in C<\%vmlist> anymore get removed too.
+
+If C<\%nics> is given, as returned by C<guest_nics>, ports of guest
+interfaces that are not on their vnet anymore get removed too, unless they are
+still up, as a port gets created right before its interface is written to the
+guest config on hotplug.
+
+=cut
+
+sub sync_commands {
+    my ($controllerid, $desired, $switches, $ports, $vmlist, $nics) = @_;
+
+    my $wanted = $desired->{switches} // {};
+
+    my $managed = {};
+    for my $switch (@$switches) {
+        my $name = $switch->{name};
+        my $external_ids = $switch->{external_ids} // {};
+
+        if (($external_ids->{$EXT_CONTROLLER} // '') ne $controllerid) {
+            if ($wanted->{$name}) {
+                die "logical switch '$name' already exists in the OVN northbound database, but"
+                    . " is not managed by SDN controller '$controllerid'\n";
+            }
+            next;
+        }
+
+        $managed->{$name} = $external_ids;
+    }
+
+    my $commands = [];
+
+    for my $name (sort keys %$managed) {
+        push @$commands, ['--if-exists', 'ls-del', $name] if !$wanted->{$name};
+    }
+
+    for my $name (sort keys %$wanted) {
+        my $external_ids = $wanted->{$name}->{external_ids};
+
+        if (!$managed->{$name}) {
+            push @$commands, ['--may-exist', 'ls-add', $name];
+        } elsif (
+            !grep { ($managed->{$name}->{$_} // '') ne $external_ids->{$_} }
+            keys %$external_ids
+        ) {
+            next;
+        }
+
+        push @$commands,
+            [
+                'set',
+                'Logical_Switch',
+                $name,
+                map { "external_ids:$_=$external_ids->{$_}" } sort keys %$external_ids,
+            ];
+    }
+
+    for my $port (sort { $a->{name} cmp $b->{name} } @$ports) {
+        my $external_ids = $port->{external_ids} // {};
+        next if ($external_ids->{$EXT_CONTROLLER} // '') ne $controllerid;
+        if (!valid_port_row($port)) {
+            log_warn(
+                "ignoring OVN port with an invalid name or MAC: '" . ($port->{name} // '') . "'");
+            next;
+        }
+
+        # ports of deleted switches are removed together with their switch
+        my $vnetid = $external_ids->{$EXT_VNET};
+        next if defined($vnetid) && $managed->{$vnetid} && !$wanted->{$vnetid};
+
+        # by UUID, so that a port re-created meanwhile by ensure_port is left alone
+        my $port_ref = $port->{_uuid} // $port->{name};
+
+        my $vmid = $external_ids->{$EXT_VMID};
+        if (defined($vmid) && !$vmlist->{$vmid}) {
+            push @$commands, ['--if-exists', 'lsp-del', $port_ref];
+            next;
+        }
+
+        if (defined($vmid) && $nics && $port->{name} =~ m/^(?:tap|veth)\d+i(\d+)$/) {
+            my $bridge = $nics->{$vmid}->{"net$1"};
+            if ((!defined($bridge) || $bridge ne ($vnetid // '')) && !ovsdb_true($port->{up})) {
+                push @$commands, ['--if-exists', 'lsp-del', $port_ref];
+                next;
+            }
+        }
+    }
+
+    return $commands;
+}
+
+# optional booleans are an empty set when unset
+sub ovsdb_true {
+    my ($value) = @_;
+
+    $value = $value->[0] if ref($value) eq 'ARRAY';
+    return $value ? 1 : 0;
+}
+
+=head3 guest_nics()
+
+Returns the bridge of every network interface of all guests, keyed by VMID and
+interface (C<net0>, C<net1>, ...).
+
+=cut
+
+sub guest_nics {
+    my $properties = PVE::Cluster::get_guest_config_properties([map { "net$_" } 0 .. 31]);
+
+    my $nics = {};
+    for my $vmid (keys %$properties) {
+        for my $net (keys $properties->{$vmid}->%*) {
+            my ($bridge) = $properties->{$vmid}->{$net} =~ m/(?:^|,)bridge=([^,]+)/;
+            $nics->{$vmid}->{$net} = $bridge if defined($bridge);
+        }
+    }
+
+    return $nics;
+}
+
 sub nbctl {
     my ($controller, @args) = @_;
 
@@ -50,6 +249,102 @@ sub nbctl_transaction {
     nbctl($controller, map { ('--', @$_) } @$commands);
 }
 
+# converts an OVSDB JSON value (RFC 7047) to plain perl data
+sub ovsdb_to_perl {
+    my ($value) = @_;
+
+    return $value if ref($value) ne 'ARRAY';
+
+    my ($type, $data) = @$value;
+    return { map { $_->[0] => $_->[1] } @$data } if $type eq 'map';
+    return [map { ovsdb_to_perl($_) } @$data] if $type eq 'set';
+    return $data; # uuid
+}
+
+=head3 list_rows($controller, $table, @columns)
+
+Returns all rows of the northbound C<$table> as list of hashes containing
+C<@columns>.
+
+=cut
+
+sub list_rows {
+    my ($controller, $table, @columns) = @_;
+
+    my $output = nbctl(
+        $controller,
+        '--format=json',
+        '--data=json',
+        '--columns=' . join(',', @columns),
+        'list',
+        $table,
+    );
+    my $result = decode_json($output);
+
+    my @headings = $result->{headings}->@*;
+
+    my $rows = [];
+    for my $data ($result->{data}->@*) {
+        push @$rows, { map { $headings[$_] => ovsdb_to_perl($data->[$_]) } 0 .. $#headings };
+    }
+
+    return $rows;
+}
+
+=head3 sync_northbound(\%previous_cfg, \%running_cfg)
+
+Reconciles the northbound database of every OVN controller with
+C<\%running_cfg>. Controllers only present in C<\%previous_cfg> get all their
+managed objects removed.
+
+Each controller is synced independently, errors are collected and raised at the
+end.
+
+=cut
+
+sub sync_northbound {
+    my ($previous_cfg, $running_cfg) = @_;
+
+    my $desired = desired_state($running_cfg);
+    my $controllers = ovn_controllers($running_cfg);
+
+    my $previous_controllers = ovn_controllers($previous_cfg // {});
+    for my $id (keys %$previous_controllers) {
+        next if $controllers->{$id};
+        $controllers->{$id} = $previous_controllers->{$id};
+        $desired->{$id} = { switches => {} };
+    }
+
+    return if !%$controllers;
+
+    my @errors;
+    for my $id (sort keys %$controllers) {
+        my $controller = $controllers->{$id};
+
+        eval {
+            my $switches = list_rows($controller, 'Logical_Switch', 'name', 'external_ids');
+            my $ports = list_rows(
+                $controller, 'Logical_Switch_Port', '_uuid', 'name', 'external_ids', 'up',
+            );
+
+            # read the guests after the ports, so that every listed port of an existing
+            # guest is known, and never take a guest list lost on a pmxcfs error for
+            # "no guests"
+            PVE::Cluster::cfs_update(1);
+            my $vmlist = PVE::Cluster::get_vmlist()->{ids};
+            die "unable to read the guest list from the cluster file system\n" if !$vmlist;
+            my $guest_nics = guest_nics();
+
+            my $commands =
+                sync_commands($id, $desired->{$id}, $switches, $ports, $vmlist, $guest_nics);
+            nbctl_transaction($controller, $commands);
+        };
+        push @errors, "OVN controller '$id': $@" if $@;
+    }
+
+    die join('', @errors) if @errors;
+}
+
 =head3 port_external_ids($controllerid, $zoneid, $vnetid, $iface)
 
 Returns the external_ids identifying the logical switch port of the guest
diff --git a/src/test/run_test_ovn.pl b/src/test/run_test_ovn.pl
index 411c60e..b453c75 100755
--- a/src/test/run_test_ovn.pl
+++ b/src/test/run_test_ovn.pl
@@ -5,7 +5,9 @@ use warnings;
 
 use lib qw(..);
 
+use JSON;
 use Test::More;
+use Test::MockModule;
 
 use PVE::Network::SDN;
 use PVE::Network::SDN::Ovn;
@@ -57,6 +59,171 @@ sub ext {
     return $ext;
 }
 
+sub set_switch {
+    my ($vnet, $zone) = @_;
+    return [
+        'set',
+        'Logical_Switch',
+        $vnet,
+        'external_ids:pve-sdn-controller=ovnctl',
+        "external_ids:pve-sdn-vnet=$vnet",
+        "external_ids:pve-sdn-zone=$zone",
+    ];
+}
+
+# desired_state
+
+my $desired = PVE::Network::SDN::Ovn::desired_state($running_cfg);
+is_deeply(
+    $desired,
+    {
+        ovnctl => {
+            switches => {
+                vnet1 => { external_ids => ext('zone1', 'vnet1') },
+                vnet2 => { external_ids => ext('zone2', 'vnet2') },
+            },
+        },
+    },
+    'desired_state: one logical switch per ovn vnet',
+);
+
+is_deeply(
+    PVE::Network::SDN::Ovn::desired_state({}), {}, 'desired_state: empty running config',
+);
+
+# sync_commands
+
+is_deeply(
+    PVE::Network::SDN::Ovn::sync_commands('ovnctl', $desired->{ovnctl}, [], [], {}),
+    [
+        ['--may-exist', 'ls-add', 'vnet1'],
+        set_switch('vnet1', 'zone1'),
+        ['--may-exist', 'ls-add', 'vnet2'],
+        set_switch('vnet2', 'zone2'),
+    ],
+    'sync_commands: create missing switches',
+);
+
+my $switches = [
+    { name => 'vnet1', external_ids => ext('zone1', 'vnet1') },
+    { name => 'vnet2', external_ids => ext('oldzone', 'vnet2') },
+    { name => 'oldvnet', external_ids => ext('zone1', 'oldvnet') },
+    { name => 'foreign', external_ids => { 'neutron:network_name' => 'foo' } },
+];
+my $ports = [
+    { name => 'tap100i0', external_ids => ext('zone1', 'vnet1', 100) },
+    { name => 'tap101i0', external_ids => ext('zone1', 'vnet1', 101) },
+    { name => 'tap102i0', external_ids => ext('zone1', 'oldvnet', 102) },
+    { name => 'manual', external_ids => ext('zone1', 'vnet1') },
+    { name => 'foreignport', external_ids => {} },
+];
+
+is_deeply(
+    PVE::Network::SDN::Ovn::sync_commands(
+        'ovnctl',
+        $desired->{ovnctl},
+        $switches,
+        $ports,
+        { 100 => {} },
+    ),
+    [
+        ['--if-exists', 'ls-del', 'oldvnet'],
+        set_switch('vnet2', 'zone2'),
+        ['--if-exists', 'lsp-del', 'tap101i0'],
+    ],
+    'sync_commands: delete, update and garbage collect, leave the rest alone',
+);
+
+eval {
+    PVE::Network::SDN::Ovn::sync_commands(
+        'ovnctl',
+        $desired->{ovnctl},
+        [{ name => 'vnet1', external_ids => {} }],
+        [],
+        {},
+    );
+};
+like($@, qr/logical switch 'vnet1' already exists/, 'sync_commands: refuse unmanaged switch');
+
+is_deeply(
+    PVE::Network::SDN::Ovn::sync_commands(
+        'ovnctl',
+        { switches => {} },
+        [{ name => 'vnet1', external_ids => ext('zone1', 'vnet1') }],
+        [{ name => 'tap100i0', external_ids => ext('zone1', 'vnet1', 100) }],
+        {},
+    ),
+    [['--if-exists', 'ls-del', 'vnet1']],
+    'sync_commands: deleted switch takes its ports along',
+);
+
+# sync_northbound, with ovn-nbctl mocked
+
+my $nb_switches = {
+    ovnctl => [[
+        'vnet1',
+        [
+            'map',
+            [map { [$_, ext('zone1', 'vnet1')->{$_}] } sort keys ext('zone1', 'vnet1')->%*],
+        ],
+    ]],
+    gonectl => [['gone', ['map', [['pve-sdn-controller', 'gonectl']]]]],
+};
+
+my $nbctl_calls = [];
+my $ovn_module = Test::MockModule->new('PVE::Network::SDN::Ovn');
+$ovn_module->mock(
+    run_command => sub {
+        my ($cmd, %param) = @_;
+
+        die "unexpected command @$cmd\n" if $cmd->[0] ne $PVE::Network::SDN::Ovn::NBCTL;
+        my ($db) = $cmd->[1] =~ m/^--db=tcp:192\.168\.0\.(\d+)/;
+        my $id = $db == 1 ? 'ovnctl' : 'gonectl';
+
+        my @args = $cmd->@[3 .. $#$cmd];
+        if ($args[-2] eq 'list') {
+            my $data = $args[-1] eq 'Logical_Switch' ? $nb_switches->{$id} : [];
+            $param{outfunc}
+                ->(encode_json({ headings => ['name', 'external_ids'], data => $data }));
+        } else {
+            push @$nbctl_calls, [$id, @args];
+        }
+    },
+);
+my $cluster_module = Test::MockModule->new('PVE::Cluster');
+$cluster_module->mock(
+    cfs_update => sub { },
+    get_vmlist => sub { return { ids => {} } },
+    get_guest_config_properties => sub { return {} },
+);
+
+my $previous_cfg = {
+    controllers => {
+        ids => {
+            gonectl => {
+                type => 'ovn',
+                'nb-connection' => 'tcp:192.168.0.9:6641',
+                'sb-connection' => 'tcp:192.168.0.9:6642',
+            },
+        },
+    },
+};
+
+PVE::Network::SDN::Ovn::sync_northbound($previous_cfg, $running_cfg);
+is_deeply(
+    $nbctl_calls,
+    [
+        ['gonectl', '--', '--if-exists', 'ls-del', 'gone'],
+        [
+            'ovnctl', '--', '--may-exist', 'ls-add', 'vnet2', '--',
+            set_switch('vnet2', 'zone2')->@*,
+        ],
+    ],
+    'sync_northbound: one transaction per controller, removed controllers get cleaned up',
+);
+
+$ovn_module->unmock('run_command');
+
 # ports
 
 is_deeply(
@@ -130,6 +297,59 @@ is(
     'firewall_port_name: container',
 );
 
+# guest interfaces removed from their vnet
+
+is_deeply(
+    PVE::Network::SDN::Ovn::sync_commands(
+        'ovnctl',
+        $desired->{ovnctl},
+        [{ name => 'vnet1', external_ids => ext('zone1', 'vnet1') }],
+        [
+            {
+                name => 'tap100i0',
+                external_ids => ext('zone1', 'vnet1', 100),
+                up => ['set', []]->[1],
+            },
+            { name => 'tap100i1', external_ids => ext('zone1', 'vnet1', 100), up => 0 },
+            { name => 'tap100i2', external_ids => ext('zone1', 'vnet1', 100), up => 0 },
+            { name => 'tap100i3', external_ids => ext('zone1', 'vnet1', 100), up => 1 },
+            # guests that do not exist anymore, whether their port is up or not
+            { name => 'tap101i0', external_ids => ext('zone1', 'vnet1', 101), up => 1 },
+            { name => 'tap102i0', external_ids => ext('zone1', 'vnet1', 102), up => 0 },
+        ],
+        { 100 => {} },
+        { 100 => { net0 => 'vnet1', net1 => 'vmbr0' } },
+    ),
+    [
+        ['--may-exist', 'ls-add', 'vnet2'],
+        set_switch('vnet2', 'zone2'),
+        ['--if-exists', 'lsp-del', 'tap100i1'],
+        ['--if-exists', 'lsp-del', 'tap100i2'],
+        ['--if-exists', 'lsp-del', 'tap101i0'],
+        ['--if-exists', 'lsp-del', 'tap102i0'],
+    ],
+    'sync_commands: remove ports of interfaces moved or removed unless still up, and of guests'
+        . ' that do not exist anymore',
+);
+
+ok(!PVE::Network::SDN::Ovn::ovsdb_true([]), 'ovsdb_true: unset optional boolean');
+ok(PVE::Network::SDN::Ovn::ovsdb_true(JSON::true), 'ovsdb_true: true');
+
+$cluster_module->mock(
+    get_guest_config_properties => sub {
+        return {
+            100 => { net0 => 'virtio=BC:24:11:00:00:01,bridge=vnet1,firewall=1' },
+            101 => { net0 => 'name=eth0,bridge=vmbr0,hwaddr=BC:24:11:00:00:02,type=veth' },
+            102 => { net1 => 'virtio=BC:24:11:00:00:03' },
+        };
+    },
+);
+is_deeply(
+    PVE::Network::SDN::Ovn::guest_nics(),
+    { 100 => { net0 => 'vnet1' }, 101 => { net0 => 'vmbr0' } },
+    'guest_nics: bridges of the guest interfaces',
+);
+
 # unsupported options
 
 eval {
-- 
2.47.3




  parent reply	other threads:[~2026-11-27 10:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 10:28 [RFC PATCH v2 network/manager/docs 00/15] sdn: add OVN zone and controller plugins Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 01/15] sdn: controllers: add ovn plugin Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 02/15] sdn: zones: " Rémi PAETA
2026-11-27 10:28 ` Rémi PAETA [this message]
2026-11-27 10:28 ` [RFC PATCH v2 network 04/15] sdn: ovn: configure the chassis on boot and on network reload Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 05/15] sdn: ovn: add port security Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 06/15] sdn: ovn: allow overriding the port security per vnet Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 07/15] sdn: subnets: refuse gateway, snat and dhcp on ovn zones Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 08/15] sdn: ovn: support ssl connections to the databases Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 network 09/15] sdn: ovn: bind guest ports to the chassis of their node Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 manager 10/15] ui: sdn: controller selector: allow filtering by controller type Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 manager 11/15] ui: sdn: add ovn controller Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 manager 12/15] ui: sdn: add ovn zone Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 manager 13/15] ui: sdn: vnet: add port security for ovn zones Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 manager 14/15] ui: sdn: vnet: disable isolate ports " Rémi PAETA
2026-11-27 10:28 ` [RFC PATCH v2 docs 15/15] sdn: document ovn zones and controllers Rémi PAETA

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261127102836.313797-4-remi.paeta@comaite.com \
    --to=remi.paeta@comaite.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal