veritas.sot.ipam
Module Contents
Classes
- class veritas.sot.ipam.Ipam(sot)
Bases:
object- add_ip(address)
add IP address to ipam
- get_ip(*unnamed, **named)
get IP address from ipam
- get_vlans(vid=None, name=None, location='', location_type=None, get_single_id=None, get_obj=None, select=['id', 'vid', 'name', 'location'])
return a list of VLANs depending on the arguments
- get_assignment(interface, address, device=None, namespace='Global')
- get_choices()
- assign_ipaddress_to_interface(interface, address, device=None, namespace='Global') bool
private method to assign IPv4 address to interface set primary IPv4
- Parameters:
device (str or nautobot.dcim.devices) – the device of the interfaces
interface (str or nautobot.dcim.interfaces) – interface to assign IP to
address (str or nautobot.ipam.ip_addresses) – IP address to assign
- Returns:
assigned – True if successfull
- Return type:
bool
- set_primary(device, address, namespace='Global')
set primary IP address of device
- Parameters:
device (str or nautobot.dcim.devices) – the device of the interfaces
ip_address (str or nautobot.ipam.-addresses) – the IP address to assign