You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/10/02 15:05:57 UTC

[GitHub] wido opened a new issue #2872: Improve ConfigDrive to store network information

wido opened a new issue #2872: Improve ConfigDrive to store network information
URL: https://github.com/apache/cloudstack/issues/2872
 
 
   ConfigDrive / cloud-init supports a *network_data.json* file which can contain network information for a VM.
   
   By providing  the network information using ConfigDrive to a VM we can eliminate the need for DHCP and thus the Virtual Router in some use-cases.
   
   An example JSON file:
   
   <pre>
   {
       "links": [
           {
               "ethernet_mac_address": "52:54:00:0d:bf:93",
               "id": "eth0",
               "mtu": 1500,
               "type": "phy"
           }
       ],
       "networks": [
           {
               "id": "eth0",
               "ip_address": "192.168.200.200",
               "link": "eth0",
               "netmask": "255.255.255.0",
               "network_id": "dacd568d-5be6-4786-91fe-750c374b78b4",
               "routes": [
                   {
                       "gateway": "192.168.200.1",
                       "netmask": "0.0.0.0",
                       "network": "0.0.0.0"
                   }
               ],
               "type": "ipv4"
           },
           {
               "id": "eth0",
               "ip_address": "2001:db8:100::1337",
               "link": "eth0",
               "netmask": "64",
               "network_id": "dacd568d-5be6-4786-91fe-750c374b78b4",
               "routes": [
                   {
                       "gateway": "2001:db8:100::1",
                       "netmask": "0",
                       "network": "::"
                   }
               ],
               "type": "ipv6"
           }
       ],
       "services": [
           {
               "address": "8.8.8.8",
               "type": "dns"
           }
       ]
   }
   </pre>
   
   In Basic Networking and Advanced Networking zones which are using a shared network you wouldn't require a VR anymore.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services