]> git.proxmox.com Git - pve-network.git/commitdiff
add format for ip-list and mtu
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 13 Sep 2019 10:33:44 +0000 (12:33 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 20 Sep 2019 07:16:18 +0000 (09:16 +0200)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Network/SDN/FrrPlugin.pm
PVE/Network/SDN/VnetPlugin.pm
PVE/Network/SDN/VxlanPlugin.pm

index 79214a7c16f4d0a5ccf532abbedf5ae525c0c68e..b0e36fadba26d50ae533f1106a4211645719ddce 100644 (file)
@@ -21,12 +21,12 @@ sub properties {
         },
         'peers' => {
             description => "peers address list.",
-            type => 'string',  #fixme: format
+            type => 'string', format => 'ip-list'
         },
        'gateway-nodes' => get_standard_option('pve-node-list'),
         'gateway-external-peers' => {
             description => "upstream bgp peers address list.",
-            type => 'string',  #fixme: format
+            type => 'string', format => 'ip-list'
         },
     };
 }
index 09e937208922faa31eade92ff32ba737e41235b0..e8aa2042002fd0efbeebd5bbae71df50615d07e2 100644 (file)
@@ -45,7 +45,7 @@ sub properties {
         mac => {
             type => 'string',
             description => "Anycast router mac address",
-           optional => 1,
+           optional => 1, format => 'mac-addr'
         }
     };
 }
index d3b923c6bd7d47ce645192bb6e7df7b49f354c96..c5ecea618fe47da32d17fd2b7c61c24918a13a39 100644 (file)
@@ -33,7 +33,7 @@ sub properties {
         },
        'unicast-address' => {
            description => "Unicast peers address ip list.",
-           type => 'string',  #fixme: format
+           type => 'string',  format => 'ip-list'
        },
        'vrf' => {
            description => "vrf name.",