infobloxopen / infoblox-client

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

could not create dual stack host record #383

Open maxadamo opened 4 months ago

maxadamo commented 4 months ago

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=...)