[BUG report]Cannot show DHCPv6 statistics correctly
BUG report: DHCPv6 statistics cannot be shown correctly
Describe the bug
I have setup Kea DHCPv6 service and it can assign IPv6 address and prefixes. However, stork cannot read the IPv6 leases correctly. (assigned number always 0)
When I check the log, I found stat-lease4-get is called in kea-dhcp6.commands:
finally I found this line in backend/appctrl/kea/leasecmds.go:
Should it be replaced by stat-lease6-get?
To Reproduce
Steps to reproduce the behavior:
- Install Kea and Stork v1.18
- DHCPv6 Client gets an IPv6 address and an IPv6 prefix from kea
- check stork, the number of DHCPv6 assigned addresses and prefixes are always 0
Expected behavior
Stork can show the number of assigned DHCPv6 addresses and prefixes, like DHCPv4 in stork does.
Suggested modification In backend/appctrl/kea/leasecmds.go:
const (
Lease4Get CommandName = "lease4-get"
Lease6Get CommandName = "lease6-get"
Lease4GetByClientID CommandName = "lease4-get-by-client-id"
Lease6GetByDUID CommandName = "lease6-get-by-duid"
Lease4GetByHostname CommandName = "lease4-get-by-hostname"
Lease6GetByHostname CommandName = "lease6-get-by-hostname"
Lease4GetByHWAddress CommandName = "lease4-get-by-hw-address"
StatLease4Get CommandName = "stat-lease4-get"
StatLease6Get CommandName = "stat-lease6-get"
)