From f6f2aa1643cc4598fe72362c1318a77814c9a60a Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Mon, 5 Oct 2020 17:08:57 +0200 Subject: [PATCH] subnet: disable route option for now and add dns domain format Signed-off-by: Alexandre Derumier --- PVE/Network/SDN/SubnetPlugin.pm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/PVE/Network/SDN/SubnetPlugin.pm b/PVE/Network/SDN/SubnetPlugin.pm index 32a9d78..ef0b962 100644 --- a/PVE/Network/SDN/SubnetPlugin.pm +++ b/PVE/Network/SDN/SubnetPlugin.pm @@ -60,11 +60,11 @@ sub properties { type => 'boolean', description => "enable masquerade for this subnet if pve-firewall", }, - #cloudinit, dhcp options - routes => { - type => 'string', - description => "static routes [network=:gateway=,network=:gateway=,... ]", - }, +# #cloudinit, dhcp options +# routes => { +# type => 'string', +# description => "static routes [network=:gateway=,network=:gateway=,... ]", +# }, dns => { type => 'string', description => "dns api server", @@ -74,15 +74,15 @@ sub properties { description => "reverse dns api server", }, dnszone => { - type => 'string', + type => 'string', format => 'dns-name', description => "dns domain zone ex: mydomain.com", }, reversednszone => { - type => 'string', + type => 'string', format => 'dns-name', description => "reverse dns zone ex: 0.168.192.in-addr.arpa", }, dnszoneprefix => { - type => 'string', + type => 'string', format => 'dns-name', description => "dns domain zone prefix ex: 'adm' -> .adm.mydomain.com", }, ipam => { @@ -95,7 +95,7 @@ sub properties { sub options { return { gateway => { optional => 1 }, - routes => { optional => 1 }, +# routes => { optional => 1 }, snat => { optional => 1 }, dns => { optional => 1 }, reversedns => { optional => 1 }, -- 2.39.2