]> git.proxmox.com Git - pve-network.git/commitdiff
subnet: disable route option for now and add dns domain format
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 5 Oct 2020 15:08:57 +0000 (17:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Oct 2020 16:17:19 +0000 (18:17 +0200)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Network/SDN/SubnetPlugin.pm

index 32a9d78259da267a9b122939e5009c7ef2f91746..ef0b962a1893d4ab2dbd02bfca6aa760d991191c 100644 (file)
@@ -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=<network>:gateway=<ip>,network=<network>:gateway=<ip>,... ]",
-        },
+#      #cloudinit, dhcp options
+#        routes => {
+#            type => 'string',
+#            description => "static routes [network=<network>:gateway=<ip>,network=<network>:gateway=<ip>,... ]",
+#        },
         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' -> <hostname>.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 },