mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 02:55:34 +00:00
api2: cluster: ressources: add "localnetwork" zone
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
61cf3e3d9a
commit
cdc140f0a3
@ -474,6 +474,20 @@ __PACKAGE__->register_method({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#add default "localnetwork" zone
|
||||||
|
if ($rpcenv->check($authuser, "/sdn/zones/localnetwork", [ 'SDN.Audit' ], 1)) {
|
||||||
|
foreach my $node (@$nodelist) {
|
||||||
|
my $local_sdn = {
|
||||||
|
id => "sdn/$node/localnetwork",
|
||||||
|
sdn => 'localnetwork',
|
||||||
|
node => $node,
|
||||||
|
type => 'sdn',
|
||||||
|
status => 'ok',
|
||||||
|
};
|
||||||
|
push @$res, $local_sdn;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($have_sdn) {
|
if ($have_sdn) {
|
||||||
if (!$param->{type} || $param->{type} eq 'sdn') {
|
if (!$param->{type} || $param->{type} eq 'sdn') {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user