Bug 1893721 - unify the name of property 'port/ports'
Summary: unify the name of property 'port/ports'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.4
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 8.4
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-02 13:04 UTC by Mingyu Shi
Modified: 2021-11-09 20:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 17:42:37 UTC
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4157 0 None None None 2021-11-09 17:42:47 UTC

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


Note You need to log in before you can comment on or make changes to this bug.