mirror of
git://git.proxmox.com/git/pve-network.git
synced 2025-01-09 01:18:06 +03:00
e424c7ac28
old status sub was renamed ifquery_check also check if local config exist or if local config is too old. (fixme : compare mtime, maybe could we use some kind of version for this?) we can have 4 status code: - pending : local config is absent but sdn.cfg exist - unknown : local config is too old, we can't be sure of the running state - error : local config is present, but don't match the running state - available : all is ok, local config is present and match running state. Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 lines
198 B
Perl
10 lines
198 B
Perl
use strict;
|
|
use warnings;
|
|
use PVE::Network::SDN;
|
|
use Data::Dumper;
|
|
|
|
my ($transport_status, $vnet_status) = PVE::Network::SDN::status();
|
|
|
|
print Dumper($vnet_status);
|
|
print Dumper($transport_status);
|