Bug 1893721

Summary: unify the name of property 'port/ports'
Product: Red Hat Enterprise Linux 8 Reporter: Mingyu Shi <mshi>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: low Docs Contact:
Priority: low    
Version: 8.4CC: ferferna, jiji, jishi, network-qe, till
Target Milestone: rcKeywords: Triaged
Target Release: 8.4Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 17:42:37 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 2020-11-02 13:04:27 UTC
Description of problem:
Now when configuring subordinate ports of a main interface, linux-bridge, bond, ovs-bridge, ovs-bond, vrf are using 'port', but team use 'ports' as the property name. We'd better to unify them. For the backward compatibility, nmstate should allow the old name, but reports only one name.

Version-Release number of selected component (if applicable):
nmstate-0.4.1-1.el8.noarch

How reproducible:
100%

Steps to Reproduce:
1. Configure a team interface
2. nmstatectl show 
3. Check the team's property

Actual results:
interfaces:
- name: team0-0
  type: team
  state: up
  ipv4:
    enabled: false
    address: []
    dhcp: false
  ipv6:
    enabled: false
    address: []
    autoconf: false
    dhcp: false
  lldp:
    enabled: false
  mac-address: 9A:AE:EE:42:13:D5
  mtu: 1500
  team:
    ports: # the other types of main interface are using 'port'
    - name: dummy0-14
    - name: dummy0-15
    runner:
      name: roundrobin


Expected results:
Show text 'port' instead of 'ports'

Additional info:

Comment 7 Mingyu Shi 2021-05-17 06:39:31 UTC
Verified with versions:
nmstate-1.0.3-1.el8.noarch
nispor-1.0.1-4.el8.x86_64

Comment 9 errata-xmlrpc 2021-11-09 17:42:37 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-2021:4157