-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remap DHCP JSON response to accommodate draft-04 of the API specification #3002
Conversation
type: string | ||
description: Lease time | ||
optionRouter: | ||
description: The IPv4 address of the dhcp member |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the IP and MAC description are mixed up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on my end
curl http://localhost:22222/api/v1/dhcp/stats/enp0s8
[{
"interface": "enp0s8",
"network": "10.10.0.0/16",
"free": 65515,
"category": "none",
"options": {
"optionDomainName": "inlinel2.satkunas.com",
"optionDomainNameServer": "10.10.0.2",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "10.10.0.2",
"optionSubnetMask": "255.255.0.0"
},
"members": [{
"mac": "ac:cf:85:26:a0:66",
"ip": "10.10.0.17"
}, {
"mac": "b8:27:eb:91:4e:5b",
"ip": "10.10.0.12"
}],
"status": "Normal"
}]
And actually, you were right, I was wrong for the openapi.json + openapi.yaml in the PRs, they shouldn't be included, when we talked I had devel in mind. So to fix it:
|
Also, very minor detail, the fix branches should be named |
type: string | ||
description: Associated role of the dhcp scope | ||
options: | ||
description: Statistics of the dhcp scope |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dhcp -> DHCP everywhere
6a8dff4
to
b788ef2
Compare
@julsemaan rebase commited. Also, |
Description
Remap the DHCP output JSON to avoid using dynamic keys. Only static keys are currently allowed in draft-04 of the API specification.
Impacts
/dhcp/stats/{interface}
and/dhcp/initialease/{interface}
endpoints.Delete branch after merge
YES
Bug Fixes