Skip to content

luci-mod-status: static lease state is not shown in overview, Reserve IP still enabled #8056

@GoetzGoerisch

Description

@GoetzGoerisch

Is there an existing issue for this?

  • I have searched among all existing issues (including closed issues)

screenshots or captures

follow-up to #8041

static IPv6 leases are not always matched, e.g. "Reserve IP" is clickable although the lease is statically defined.

Actual behaviour

  • Define lease either through Status-Overview-Reserve IP or Network-DHCP-Leases
  • Lease is static defined
  • Still "Reserve IP" is clickable.

Expected behaviour

Reserve IP is no longer clickable for a static defined lease.
For the same host, IPv4 is working.

Steps to reproduce

see Actual behavior

Additional Information

#8041

Luci `25.303.13639~ebb90f9`

What browsers do you see the problem on?

Firefox

Relevant log output

Reserving the IP through `Status-Overview-Reserve IP` sets the DUID UPPERCASE%IAID lowercase.
Reserving the IP through `Network-DHCP-Leases` sets the DUID%IAID as lowercase.

Works for other hosts, but not this particular one.

manually setting `option duid 'xxx'` if setting through leases

`ubus call luci-rpc getDHCPLeases` shows the DUID with lowercase and IAID with lowercase.

/etc/config/dhcp

config host
	option name 'nas01'
	list mac '00:00:B0:AA:01:57'
	option hostid '13'
	option instance 'mgmt_dns'
	option dns '1'
	option ip '10.1.10.13'
	option duid '000300000000B00AA157%b00aa157'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions