Devices can't add a device with a Static IP address outside of dyanmic/static range
Bug #1462079 reported by
Andres Rodriguez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Blake Rouse |
Bug Description
When trying to add a device with an IP address that falls outside the static or dynamic range, the "save device' was not clickable on some cases, and the device could not be added.
IP address was 192.168.10.9
When trying to add the device with 192.168.10.6 it worked just fine.
MAAS Dynamic range goes from: 10.10 to 10.100
and Static from 10.101 to 10.254.
In taipei lab. Add a device with any MAC address.
1. Input any MAC address
2. Select Static IP
3. Select Network
4. Input IP: 192.168.10.9
5. 'Add Device' is not clickable
It works with another IP address:
1. Input any MAC address
2. Select Static IP
3. Select Network
4. Input IP: 192.168.10.6
5. 'Add Device' is clickable.
Related branches
lp:~blake-rouse/maas/fix-1462079
- Andres Rodriguez (community): Approve
-
Diff: 63 lines (+41/-1)2 files modifiedsrc/maasserver/static/js/angular/services/tests/test_validation.js (+40/-0)
src/maasserver/static/js/angular/services/validation.js (+1/-1)
Changed in maas: | |
assignee: | nobody → Blake Rouse (blake-rouse) |
importance: | Undecided → Critical |
status: | New → Confirmed |
milestone: | none → 1.8.0 |
description: | updated |
description: | updated |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This occurs because of JS parseInt using radix of 8.
parseInt('8', 8) = NaN
the ValidationService should have been using
parseInt('8', 10)