Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-153618

Support quoted boolean in `ipv4.forwarding`

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.2
    • nmstate
    • None
    • None
    • rhel-net-mgmt
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      Definition of Done:

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      None


      ( ) Integration test case is available upstream.


      Code is reviewed and merged upstream.


      ( ) Preliminary testing is done.


      ( ) Upstream documentation is written in the upstream MR.


      ( ) Release notes text is written in the RHEL issue.


      ( ) A demo is recorded

      Show
      Definition of Done: Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. None ( ) Integration test case is available upstream. Code is reviewed and merged upstream. ( ) Preliminary testing is done. ( ) Upstream documentation is written in the upstream MR. ( ) Release notes text is written in the RHEL issue. ( ) A demo is recorded
    • Requested
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      Got failure when applying this YAML via `nmstatectl apply`:

       

      ---
      interfaces:
        - name: eth1
          type: ethernet
          state: up
          ipv4:
            address:
            - ip: 192.0.2.1
              prefix-length: 24
            dhcp: false
            enabled: true
            forwarding: "true" 

       

       

      What is the impact of this issue to you?

       

      None.

      Please provide the package NVR for which the bug is seen:

       

      nmstate-2.2.58-1.el10

      How reproducible is this bug?:

       

      100%

      Steps to reproduce

       

      echo '---
      interfaces:
        - name: eth1
          type: ethernet
          state: up
          ipv4:
            address:
            - ip: 192.0.2.1
              prefix-length: 24
            dhcp: false
            enabled: true
            forwarding: "true"' | sudo nmstatectl apply -

       

       

      Expected results

       

      No error

      Actual results

       

      Provide file is not valid NetworkState or NetworkPolicy: interfaces: invalid type: string "true", expected a boolean at line 3 column 3

              rh-ee-mshi1 Mingyu Shi
              fge@redhat.com Gris Ge
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: