Skip to content

slcli vs dns-sync --ptr fails #1195

@allmightyspiff

Description

@allmightyspiff
$ slcli -v  vs dns-sync  77932517 --ptr
Calling: SoftLayer_Virtual_Guest::getObject(id=77932517, mask='mask[id,globalIdentifier,fullyQualifiedDomainName,hostname,domain,primaryBackendIpAddress,primaryIpAddress,primaryNetworkComponent[ id, primaryIpAddress, primaryVersion6IpAddressRecord[ipAddress] ]]', filter='None', args=(), limit=None, offset=None))
Calling: SoftLayer_Account::getDomains(id=None, mask='', filter='{'domains': {'name': {'operation': '_= cgallo.com'}}}', args=(), limit=None, offset=None))
Calling: SoftLayer_Dns_Domain::getObject(id=1861630, mask='resourceRecords', filter='None', args=(), limit=None, offset=None))
Attempt to update DNS records for testing.cgallo.com [y/N]: y
Calling: SoftLayer_Virtual_Guest::getReverseDomainRecords(id=77932517, mask='', filter='None', args=(), limit=None, offset=None))
Calling: SoftLayer_Dns_Domain_ResourceRecord::editObject(id=116961023, mask='', filter='None', args=({'data': 'testing.cgallo.com', 'domainId': 1761141, 'expire': None, 'host': '195', 'id': 116961023, 'minimum': None, 'mxPriority': None, 'refresh': None, 'retry': None, 'ttl': 7200, 'type': 'ptr', 'isGatewayAddress': False},), limit=None, offset=None))
SoftLayerAPIError(500): The property 'isGatewayAddress' is not valid for 'SoftLayer_Dns_Domain_ResourceRecord'.

For some reason SoftLayer_Dns_Domain_ResourceRecord datatypes have isGatewayAddress property even though its not on https://sldn.softlayer.com/reference/datatypes/SoftLayer_Dns_Domain_ResourceRecord/ which is causing problems when trying to edit a record.

Also, lets take this time to implement a PTR record creator/editor to slcli dns and duplicate the vs dns-sync to hw dns-sync

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions