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

could not create dual stack host record #383

Open
maxadamo opened this issue Jul 24, 2024 · 0 comments
Open

could not create dual stack host record #383

maxadamo opened this issue Jul 24, 2024 · 0 comments

Comments

@maxadamo
Copy link

I have ipv4 and ipv6 objects, created as following:

ip6 = objects.IPv6.create(ip=self.ipv6, mac="00:00:00:00:00:00", configure_for_dhcp=False)
ip4 = objects.IPv4.create(ip=self.ipv4, configure_for_dhcp=False)

if try to create the host record, I can get only IPv4 or IPv6, but I cannot get the two types of IPs together.

objects.HostRecordV6.create(
    self.conn,
    view=self.network,
    name=self.record,
    ipv4addrs=[ip4],
    ipv6addrs=[ip6],
)

if I use objects.HostRecordV6 I get only the IPv6
if I use objects.HostRecordV4 or objects.HostRecord I get only the IPv4
If I try to run if again, I get to add the missing IP I get an error

please also note #346 : with IPv6 I have to use mac=...)

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

1 participant