We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63164ff commit 6af5886Copy full SHA for 6af5886
netbox/ipam.py
@@ -18,7 +18,15 @@ def get_ip_by_device(self, device_name):
18
:param device_name: Name of the device
19
:return: ip address information
20
"""
21
- return self.netbox_con.get('/ipam/ip-addresses', device_name=device_name)
+ return self.netbox_con.get('/ipam/ip-addresses', device=device_name)
22
+
23
+ def get_ip_by_virtual_machine(self, vm_name):
24
+ """Get IPs which are associated to a device
25
26
+ :param vm_name: Name of the virtual machine
27
+ :return: ip address information
28
+ """
29
+ return self.netbox_con.get('/ipam/ip-addresses', virtual_machine=vm_name)
30
31
def create_ip_address(self, address, **kwargs):
32
"""Create a new ip address
0 commit comments