Page MenuHomePhabricator

dhcp-server commit fails with "DHCP range stop address x must be greater or equal to the range start address y!" when static mapping has same IP as range stop
Closed, ResolvedPublic

Description

When a static mapping is defined with the same address as the range stop address, the above error is thrown on commit.

dhcp-server {
     shared-network-name test-pool {
         subnet 10.1.2.0/24 {
             default-router 10.1.2.1
             lease 86400
             range 0 {
                 start 10.1.2.100
                 stop 10.1.2.199
             }
             static-mapping one {
                 ip-address 10.1.2.199
                 mac-address aa:bb:cc:dd:ee:ff
             }
       }
}

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling-201910180142
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

jjakob created this task.Sat, Oct 19, 4:40 AM
jjakob created this object in space S1 VyOS Public.
c-po changed the task status from Open to In progress.Sat, Oct 19, 7:39 AM
c-po claimed this task.
c-po closed this task as Resolved.Sat, Oct 19, 8:15 AM
c-po edited projects, added VyOS 1.2 Crux (VyOS 1.2.4); removed VyOS 1.2 Crux.
c-po moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.4) board.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.