-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.14
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
No
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
need to limit range of ip address prefix-length
Version-Release number of selected component (if applicable):
OCP version: 4.14.0-0.nightly-2023-06-30-131338 knmstate operator version: kubernetes-nmstate-operator.4.14.0-202307041530
How reproducible:
100%
Steps to Reproduce:
1. install knmstate operator 2. login web console, Networking -> NodeNetworkConfigurationPolicy, click Create, select From Form, set policy name, add a linux bridge, set ipv4 address, set prefix-length as 33 3. click Create
Actual results:
nncp is created with the invalid prefix-length
Expected results:
limit the range of prefix-length can be set
Additional info:
HTTP POST: { "apiVersion": "nmstate.io/v1", "kind": "NodeNetworkConfigurationPolicy", "metadata": { "name": "policy-ip" }, "spec": { "desiredState": { "interfaces": [ { "ipv4": { "address": [ { "ip": "10.3.4.4", "prefix-length": 33 } ], "enabled": true }, "name": "br0", "state": "up", "type": "linux-bridge" } ] } } }