From fcfca9ef254e40cc5e8ceeb074b18d1f13fabf20 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Fri, 13 Sep 2019 12:33:44 +0200 Subject: [PATCH] add format for ip-list and mtu Signed-off-by: Alexandre Derumier --- 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.39.5