From: Alexandre Derumier Date: Fri, 13 Sep 2019 10:33:44 +0000 (+0200) Subject: add format for ip-list and mtu X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fcfca9ef254e40cc5e8ceeb074b18d1f13fabf20;p=matthieu%2Fpve-network.git add format for ip-list and mtu Signed-off-by: Alexandre Derumier --- 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.",