Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-15815

need to limit range of ip address prefix-length

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 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"
                      }
                  ]
              }
          }
      }

              upalatuc@redhat.com Ugo Palatucci
              rh-ee-qiowang Qiong Wang
              None
              None
              Qiong Wang Qiong Wang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: