Skip to content

sonic-cli shell doesn't accept "interface Ethernet4" without space #194

@nagarwal03

Description

@nagarwal03

Currently accepted: "interface Ethernet 4" but doesn't accept: "interface Ethernet4"

Ethernet4 without space is the qualified name in the show commands.

Eg:
(Only accepts command with space between "Ethernet" and interface number)
sonic#
sonic# configure terminal
sonic(config)# interface Ethernet 4
sonic(conf-if-Ethernet4)# exit
sonic(config)#
sonic(config)#
sonic(config)# interface Ethernet
Ethernet Select an interface

sonic(config)# interface Ethernet
Unsigned integer Physical interface(Multiples of 4)

Hence, unable to use get_links API in spytest framework to get interface name with space between "Ethernet" and interface number.

Affected scripts: /tests/dell/ut/cli/vlan/test_vlan.py. The script is presently hard-coded with the interface values. I will update the script after the issue is addressed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions