Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAC required to create IPv6 address #346

Open
tucked opened this issue Oct 5, 2022 · 2 comments
Open

MAC required to create IPv6 address #346

tucked opened this issue Oct 5, 2022 · 2 comments

Comments

@tucked
Copy link

tucked commented Oct 5, 2022

>>> 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
Copy link
Collaborator

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants