-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is based on a subset of Ubuntu's netplan and cloudinit. "network" (optional) Used to configure network in live/installed system. Set "version": "2" or the legacy config will be used, see below. The syntax roughly follows the cloud-init or netplan configuration, but not all options are supported. "hostname": set the host name. "ethernets": Settings for ethernet interfaces. Each interface has an 'id', which can be any name which may be refrenced for examplev for VLANs. Can be the interface name. Within any 'id': "match" : set a way to match this interface. Can be 'name' or 'macaddress'. "dhcp4" : set to "yes" or "no" "addresses" : a list of ip addresses (IPv4 or IPv6) with cidr netmask. "gateway" : the default gateway. "nameservers" : a dictionary with "addresses" containing a list of name servers, and "search" with a list of search domains. "vlans": Settings for VLAN interfaces. Similar to "ethernets" above, but with these additional required settings: "id" : the VLAN id (integer in the range 1..4094) "link" : the id of the ethernet interface to use, from the "ethernets" configured. Example: "network":{ "version": "2", "hostname" : "photon-machine", "ethernets": { "id0":{ "match":{ "name" : "eth0" }, "dhcp4" : "no", "addresses":[ "192.168.2.58/24" ], "gateway": "192.168.2.254", "nameservers":{ "addresses" : ["8.8.8.8", "8.8.4.4"], "search" : ["vmware.com", "eng.vmware.com"] } } }, "vlans": { "vlan0": { "id": 100, "link": "id0", "addresses":[ "192.168.100.58/24" ] } } } Change-Id: I544da79dba0c4285f1acf8d8315cdb1e9ec91783
- Loading branch information
1 parent
4aacf5a
commit 63edd85
Showing
3 changed files
with
505 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.