projects
/
pve-firewall.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
582275c
)
proxy host rule API calls to correct node
author
Dietmar Maurer
<dietmar@proxmox.com>
Thu, 26 Jun 2014 05:12:06 +0000
(07:12 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Thu, 26 Jun 2014 05:12:06 +0000
(07:12 +0200)
src/PVE/API2/Firewall/Rules.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/API2/Firewall/Rules.pm
b/src/PVE/API2/Firewall/Rules.pm
index df9f5621dd4612a6f15d6c00796fb4e0ef35e574..83190b4f3886e59d2564b4d65f2dfca275a98ae4 100644
(file)
--- a/
src/PVE/API2/Firewall/Rules.pm
+++ b/
src/PVE/API2/Firewall/Rules.pm
@@
-67,6
+67,7
@@
sub register_get_rules {
additionalProperties => 0,
properties => $properties,
},
additionalProperties => 0,
properties => $properties,
},
+ proxyto => $class->rule_env() eq 'host' ? 'node' : undef,
returns => {
type => 'array',
items => {
returns => {
type => 'array',
items => {
@@
-111,6
+112,7
@@
sub register_get_rule {
additionalProperties => 0,
properties => $properties,
},
additionalProperties => 0,
properties => $properties,
},
+ proxyto => $class->rule_env() eq 'host' ? 'node' : undef,
returns => {
type => "object",
properties => {
returns => {
type => "object",
properties => {
@@
-154,6
+156,7
@@
sub register_create_rule {
additionalProperties => 0,
properties => $create_rule_properties,
},
additionalProperties => 0,
properties => $create_rule_properties,
},
+ proxyto => $class->rule_env() eq 'host' ? 'node' : undef,
returns => { type => "null" },
code => sub {
my ($param) = @_;
returns => { type => "null" },
code => sub {
my ($param) = @_;
@@
-207,6
+210,7
@@
sub register_update_rule {
additionalProperties => 0,
properties => $update_rule_properties,
},
additionalProperties => 0,
properties => $update_rule_properties,
},
+ proxyto => $class->rule_env() eq 'host' ? 'node' : undef,
returns => { type => "null" },
code => sub {
my ($param) = @_;
returns => { type => "null" },
code => sub {
my ($param) = @_;
@@
-265,6
+269,7
@@
sub register_delete_rule {
additionalProperties => 0,
properties => $properties,
},
additionalProperties => 0,
properties => $properties,
},
+ proxyto => $class->rule_env() eq 'host' ? 'node' : undef,
returns => { type => "null" },
code => sub {
my ($param) = @_;
returns => { type => "null" },
code => sub {
my ($param) = @_;