diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-03-01 00:51:26 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-03-01 00:51:26 -0500 |
commit | f0e26abe896318819a6b568dd72e9974b53928c8 (patch) | |
tree | e2aa8a1c6260b94c2c416f81c1c54af624a1afbb /cloudinit/sources/helpers/vmware/imc/boot_proto.py | |
parent | 14915526ca67bbf7842028d48170015b85f87469 (diff) | |
parent | c5d2f79a982258d86181368b25ce6bc6638ef645 (diff) | |
download | vyos-cloud-init-f0e26abe896318819a6b568dd72e9974b53928c8.tar.gz vyos-cloud-init-f0e26abe896318819a6b568dd72e9974b53928c8.zip |
Add Image Customization Parser for VMware vSphere Hypervisor Support.
This is the first changeset submitted as a part of project to
add cloud-init support for VMware vSphere Hypervisor. This changeset
contains _only_ the changes for a simple python parser for a
Image Customization Specification file pushed by VMware vSphere
hypervisor into the guest VMs. In a later changeset, will be submitting
another patch to actually detect the underlying VMware vSphere hypervisor
and do the necessary customization.
Diffstat (limited to 'cloudinit/sources/helpers/vmware/imc/boot_proto.py')
-rw-r--r-- | cloudinit/sources/helpers/vmware/imc/boot_proto.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cloudinit/sources/helpers/vmware/imc/boot_proto.py b/cloudinit/sources/helpers/vmware/imc/boot_proto.py new file mode 100644 index 00000000..faba5887 --- /dev/null +++ b/cloudinit/sources/helpers/vmware/imc/boot_proto.py @@ -0,0 +1,25 @@ +# vi: ts=4 expandtab
+#
+# Copyright (C) 2015 Canonical Ltd.
+# Copyright (C) 2015 VMware Inc.
+#
+# Author: Sankar Tanguturi <stanguturi@vmware.com>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 3, as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+class BootProtoEnum:
+ """Specifies the NIC Boot Settings."""
+
+ DHCP = 'dhcp'
+ STATIC = 'static'
|