11import netbox .exceptions as exceptions
2+
3+
24class Virtualization (object ):
35
46 def __init__ (self , netbox_con ):
@@ -114,6 +116,7 @@ def update_interface(self, name, virtual_machine, **kwargs):
114116 """Update virtual_machine interface
115117
116118 :param name: name of the interface to update
119+ :param virtual_machine: name of the virtual-machine to update
117120 :param kwargs: update data
118121 :return: bool True if successful otherwise raise UpdateException
119122 """
@@ -150,7 +153,7 @@ def get_virtual_machine(self, **kwargs):
150153 def delete_virtual_machine (self , virtual_machine_name ):
151154 """Delete virtual machine
152155
153- :param name : name of the virtual machine to delete
156+ :param virtual_machine_name : name of the virtual machine to delete
154157 :return: bool True if successful otherwise raise exception
155158 """
156159 try :
@@ -162,7 +165,7 @@ def delete_virtual_machine(self, virtual_machine_name):
162165 def update_virtual_machine (self , virtual_machine_name , ** kwargs ):
163166 """Update virtual-machine
164167
165- :param name : name of the virtual-machine to update
168+ :param virtual_machine_name : name of the virtual-machine to update
166169 :param kwargs: update data
167170 :return: bool True if successful otherwise raise UpdateException
168171 """
0 commit comments