]> git.proxmox.com Git - pve-firewall.git/commitdiff
fix API: property sport/dport requires protocol
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 21 May 2014 08:29:06 +0000 (10:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 21 May 2014 08:29:06 +0000 (10:29 +0200)
src/PVE/Firewall.pm

index bfaa35003e3362da141b27a48fc1484d1eea095f..cacfedcf19b936947f3bdbdf50632853c05791a4 100644 (file)
@@ -915,10 +915,12 @@ my $rule_properties = {
     sport => {
        type => 'string', format => 'pve-fw-port-spec',
        optional => 1,
     sport => {
        type => 'string', format => 'pve-fw-port-spec',
        optional => 1,
+       requires => 'proto',
     },
     dport => {
        type => 'string', format => 'pve-fw-port-spec',
        optional => 1,
     },
     dport => {
        type => 'string', format => 'pve-fw-port-spec',
        optional => 1,
+       requires => 'proto',
     },
     comment => {
        type => 'string',
     },
     comment => {
        type => 'string',