Actions
Bug #13094
closedNot able to list DHCP records for a particular subnet through DHCP SmartProxy API
Status:
Duplicate
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Description
Listing of all subnets works just fine:
- curl -kSs --cacert /var/lib/puppet/ssl/certs/ca.pem --cert /var/lib/puppet/ssl/certs/`hostname -f`.pem --key /var/lib/puppet/ssl/private_keys/`hostname -f`.pem -H "Content-Type: application/json" -H "Accept:application/json" https://localhost:8443/dhcp | jq '.' | head
[ {
"network": "10.122.224.0",
"netmask": "255.255.255.252"
}, {
"network": "10.122.225.0",
"netmask": "255.255.255.252"
}, {
However, an attempt to list records under any of subnets or getting details of particular DHCP record results in this error:
- curl -k --cacert /var/lib/puppet/ssl/certs/ca.pem --cert /var/lib/puppet/ssl/certs/`hostname -f`.pem --key /var/lib/puppet/ssl/private_keys/`hostname -f`.pem -H "Content-Type: application/json" -H "Accept:application/json" https://localhost:8443/dhcp/10.122.194.0
address family must be specified
- curl -k --cacert /var/lib/puppet/ssl/certs/ca.pem --cert /var/lib/puppet/ssl/certs/`hostname -f`.pem --key /var/lib/puppet/ssl/private_keys/`hostname -f`.pem -H "Content-Type: application/json" -H "Accept:application/json" https://localhost:8443/dhcp/10.122.194.0/10.122.194.250
address family must be specified
Updated by Dominic Cleal over 9 years ago
- Is duplicate of Bug #13062: smart-proxy throws an error when the field for fixed-address does not match a valid IP. added
Actions