]> git.proxmox.com Git - pve-network.git/commit
add new status sub and move code from test
authorAlexandre Derumier <aderumier@odiso.com>
Thu, 29 Aug 2019 10:32:43 +0000 (12:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 3 Sep 2019 06:22:56 +0000 (08:22 +0200)
commite424c7ac282802f9d02d236059673d913db7140a
treeacf92f49f931a09ddee96ddbbb70a7e680fdcc1f
parent80348b2d6fad36443b6ab83b5f8c4e734afd9af8
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>
PVE/Network/SDN.pm
test/statuscheck.pl