[pve-devel] [PATCH pve-network 1/2] add format for ip-list and mtu

Alexandre Derumier aderumier at odiso.com
Fri Sep 13 12:33:44 CEST 2019


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Network/SDN/FrrPlugin.pm   | 4 ++--
 PVE/Network/SDN/VnetPlugin.pm  | 2 +-
 PVE/Network/SDN/VxlanPlugin.pm | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/PVE/Network/SDN/FrrPlugin.pm b/PVE/Network/SDN/FrrPlugin.pm
index 79214a7..b0e36fa 100644
--- a/PVE/Network/SDN/FrrPlugin.pm
+++ b/PVE/Network/SDN/FrrPlugin.pm
@@ -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'
         },
     };
 }
diff --git a/PVE/Network/SDN/VnetPlugin.pm b/PVE/Network/SDN/VnetPlugin.pm
index 09e9372..e8aa204 100644
--- a/PVE/Network/SDN/VnetPlugin.pm
+++ b/PVE/Network/SDN/VnetPlugin.pm
@@ -45,7 +45,7 @@ sub properties {
         mac => {
             type => 'string',
             description => "Anycast router mac address",
-	    optional => 1,
+	    optional => 1, format => 'mac-addr'
         }
     };
 }
diff --git a/PVE/Network/SDN/VxlanPlugin.pm b/PVE/Network/SDN/VxlanPlugin.pm
index d3b923c..c5ecea6 100644
--- a/PVE/Network/SDN/VxlanPlugin.pm
+++ b/PVE/Network/SDN/VxlanPlugin.pm
@@ -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.",
-- 
2.20.1




More information about the pve-devel mailing list