Project

General

Profile

Actions

Bug #13094

closed

Not able to list DHCP records for a particular subnet through DHCP SmartProxy API

Added by Konstantin Orekhov almost 9 years ago. Updated almost 9 years ago.

Status:
Duplicate
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Listing of all subnets works just fine:

  1. 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:

  1. 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
  1. 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

Related issues 1 (0 open1 closed)

Is duplicate of Smart Proxy - Bug #13062: smart-proxy throws an error when the field for fixed-address does not match a valid IP.ClosedDominic Cleal01/08/2016Actions
Actions

Also available in: Atom PDF