From 2f22ff8a488671d1ec530d5b076f0a797abbdc14 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Thu, 7 Mar 2013 01:27:33 +0100 Subject: [PATCH] feautre #1691: VMware actions for attach/detach NIC (not supported) --- install.sh | 2 ++ src/vmm_mad/remotes/vmware/attach_nic | 21 +++++++++++++++++++++ src/vmm_mad/remotes/vmware/detach_nic | 21 +++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100755 src/vmm_mad/remotes/vmware/attach_nic create mode 100755 src/vmm_mad/remotes/vmware/detach_nic diff --git a/install.sh b/install.sh index f7e33de441..ec20dac28a 100755 --- a/install.sh +++ b/install.sh @@ -810,6 +810,8 @@ VMM_EXEC_XEN4_SCRIPTS="src/vmm_mad/remotes/xen/cancel \ VMM_EXEC_VMWARE_SCRIPTS="src/vmm_mad/remotes/vmware/cancel \ src/vmm_mad/remotes/vmware/attach_disk \ src/vmm_mad/remotes/vmware/detach_disk \ + src/vmm_mad/remotes/vmware/attach_nic \ + src/vmm_mad/remotes/vmware/detach_nic \ src/vmm_mad/remotes/vmware/snapshot_create \ src/vmm_mad/remotes/vmware/snapshot_revert \ src/vmm_mad/remotes/vmware/snapshot_delete \ diff --git a/src/vmm_mad/remotes/vmware/attach_nic b/src/vmm_mad/remotes/vmware/attach_nic new file mode 100755 index 0000000000..8284e47213 --- /dev/null +++ b/src/vmm_mad/remotes/vmware/attach_nic @@ -0,0 +1,21 @@ +#!/bin/bash + +# -------------------------------------------------------------------------- # +# Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # +source $(dirname $0)/../../scripts_common.sh + +log_error "Attach network interface is not yet supported for VMware." +exit 1 diff --git a/src/vmm_mad/remotes/vmware/detach_nic b/src/vmm_mad/remotes/vmware/detach_nic new file mode 100755 index 0000000000..d7dd8980bc --- /dev/null +++ b/src/vmm_mad/remotes/vmware/detach_nic @@ -0,0 +1,21 @@ +#!/bin/bash + +# -------------------------------------------------------------------------- # +# Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # +source $(dirname $0)/../../scripts_common.sh + +log_error "Detach network interface is not yet supported for VMware." +exit 1