diff options
author | Sankar Tanguturi <stanguturi@stanguturi-rhel> | 2016-03-08 12:41:08 -0800 |
---|---|---|
committer | Sankar Tanguturi <stanguturi@stanguturi-rhel> | 2016-03-08 12:41:08 -0800 |
commit | ef7368ef61c47fbb0bc03e6e7a5bc4571d492baf (patch) | |
tree | 93c08f9eeca19645ef4316b612f7fed1aecf9c06 /cloudinit/sources/helpers/vmware/imc/guestcust_event.py | |
parent | bbf105baafbe788f7babbda188b513180424e256 (diff) | |
download | vyos-cloud-init-ef7368ef61c47fbb0bc03e6e7a5bc4571d492baf.tar.gz vyos-cloud-init-ef7368ef61c47fbb0bc03e6e7a5bc4571d492baf.zip |
- Ignored return code 1 for 'pkill' command in config_nic.py
- Added few utility functions to report events to the underlying
VMware Virtualization platform
- Re-factored code little bit.
- Executed ./tools/run-pep8 and no pep8 errors were reported.
Diffstat (limited to 'cloudinit/sources/helpers/vmware/imc/guestcust_event.py')
-rw-r--r-- | cloudinit/sources/helpers/vmware/imc/guestcust_event.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cloudinit/sources/helpers/vmware/imc/guestcust_event.py b/cloudinit/sources/helpers/vmware/imc/guestcust_event.py new file mode 100644 index 00000000..fc22568f --- /dev/null +++ b/cloudinit/sources/helpers/vmware/imc/guestcust_event.py @@ -0,0 +1,27 @@ +# vi: ts=4 expandtab
+#
+# Copyright (C) 2016 Canonical Ltd.
+# Copyright (C) 2016 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 GuestCustEventEnum:
+ """Specifies different types of Guest Customization Events"""
+
+ GUESTCUST_EVENT_CUSTOMIZE_FAILED = 100
+ GUESTCUST_EVENT_NETWORK_SETUP_FAILED = 101
+ GUESTCUST_EVENT_ENABLE_NICS = 103
+ GUESTCUST_EVENT_QUERY_NICS = 104
|