1
1
import netbox .exceptions as exceptions
2
+
3
+
2
4
class Virtualization (object ):
3
5
4
6
def __init__ (self , netbox_con ):
@@ -114,6 +116,7 @@ def update_interface(self, name, virtual_machine, **kwargs):
114
116
"""Update virtual_machine interface
115
117
116
118
:param name: name of the interface to update
119
+ :param virtual_machine: name of the virtual-machine to update
117
120
:param kwargs: update data
118
121
:return: bool True if successful otherwise raise UpdateException
119
122
"""
@@ -150,7 +153,7 @@ def get_virtual_machine(self, **kwargs):
150
153
def delete_virtual_machine (self , virtual_machine_name ):
151
154
"""Delete virtual machine
152
155
153
- :param name : name of the virtual machine to delete
156
+ :param virtual_machine_name : name of the virtual machine to delete
154
157
:return: bool True if successful otherwise raise exception
155
158
"""
156
159
try :
@@ -162,7 +165,7 @@ def delete_virtual_machine(self, virtual_machine_name):
162
165
def update_virtual_machine (self , virtual_machine_name , ** kwargs ):
163
166
"""Update virtual-machine
164
167
165
- :param name : name of the virtual-machine to update
168
+ :param virtual_machine_name : name of the virtual-machine to update
166
169
:param kwargs: update data
167
170
:return: bool True if successful otherwise raise UpdateException
168
171
"""
0 commit comments