Skip to content

could not create dual stack host record #383

@maxadamo

Description

@maxadamo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions