5
0
mirror of git://git.proxmox.com/git/pve-network.git synced 2025-01-09 01:18:06 +03:00
pve-network/test/statuscheck.pl
Alexandre Derumier e424c7ac28 add new status sub and move code from test
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>
2019-09-03 08:22:56 +02:00

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);