Bug 2116306

Summary: Changing an existing vrf interface requires route-table-id with rust
Product: Red Hat Enterprise Linux 9 Reporter: Mingyu Shi <mshi>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: low Docs Contact:
Priority: low    
Version: 9.1CC: ferferna, jiji, jishi, network-qe, sfaye, till
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 07:31:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mingyu Shi 2022-08-08 08:30:22 UTC
Description of problem:
Changing an existing vrf interface requires route-table-id, while using python it can be omitted.

Version-Release number of selected component (if applicable):
nmstate-2.1.3-1.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
echo "
interfaces:
  - name: vrf99
    type: vrf
    state: up
    vrf:
      route-table-id: 99
" | nmstatectl apply

echo "
interfaces:
  - name: vrf99
    type: vrf
    state: up
    vrf:
      port: []
" | nmstatectl apply

Actual results:
serde_yaml::Error: missing field `route-table-id`

Expected results:
No failure, auto preserve the current route-table-id

Additional info:

Comment 1 Gris Ge 2022-09-02 15:50:27 UTC
Patch posted to upstream: https://github.com/nmstate/nmstate/pull/2028

Comment 8 errata-xmlrpc 2023-05-09 07:31:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2190