infobloxopen / infoblox-client

Infoblox NIOS Python WAPI Client
Apache License 2.0
142 stars 104 forks source link

MAC required to create IPv6 address #346

Open tucked opened 2 years ago

tucked commented 2 years ago
>>> from infoblox_client import objects
>>> objects.IP.create("127.0.0.1")
IPv4: ipv4addr="127.0.0.1", ip="127.0.0.1"
>>> objects.IP.create("::1")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "venv/lib/python3.8/site-packages/infoblox_client/objects.py", line 543, in create
    return IPv6(ip=ip, duid=ib_utils.generate_duid(mac),
  File "venv/lib/python3.8/site-packages/infoblox_client/utils.py", line 47, in generate_duid
    raise ValueError("Invalid argument was passed")
ValueError: Invalid argument was passed

Workaround:

>>> ip = objects.IPv6()
>>> ip.ip = "::1"
>>> ip
IPv6: ipv6addr="::1", ip="::1"
sarya-infoblox commented 2 years ago

Hi @tucked

We are working on a priority ticket as of now and will look into this issue as soon as I get some time.

maxadamo commented 4 months ago

@sarya-infoblox do you have an update on this issue?