improve rules API
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 21 May 2014 11:03:57 +0000 (13:03 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 21 May 2014 11:03:57 +0000 (13:03 +0200)
commit914f9a50a1e3586d75f3d17a4addfcc575ec15b4
treef9903eb39c90f234099706722bc6136df5deb73a
parentb1ef6d2e715d6aeaf67d53ca3270f0d247c407d9
improve rules API

Do not use JSON schema 'requires' property, because that forbids to
use '' to delete properties.

It is now possible to update/delete individual rule properties like:

  pvesh set nodes/lola/openvz/104/firewall/rules/0 -proto udp
  pvesh set nodes/lola/openvz/104/firewall/rules/1 -delete dport
src/PVE/API2/Firewall/Rules.pm
src/PVE/Firewall.pm