Description
There is no interface name validation when adding IP address. Below are some examples
root@sonic:~# config interface ip add Vlan000000000000003 1.1.1.1/24
root@sonic:~# config interface ip add Vlan000000000000004 1.1.1.1/24
root@sonic:~#
root@sonic:~#
root@sonic:~# config interface ip add Vlan3 3.1.1.1/24
root@sonic:~#
root@sonic:~# show vlan brief
+-----------+--------------+-----------+----------------+-------------+-----------------------+
| VLAN ID | IP Address | Ports | Port Tagging | Proxy ARP | DHCP Helper Address |
+===========+==============+===========+================+=============+=======================+
| 2 | | Ethernet0 | tagged | disabled | |
+-----------+--------------+-----------+----------------+-------------+-----------------------+
root@sonic:~#
root@sonic:~# config interface ip add PortChannelabc 1.1.2.3/24
root@sonic:~#
root@sonic:~# config interface ip add Vlan10.1000 4.5.1.3/24
root@sonic:~# show subinterfaces status
Sub port interface Speed MTU Vlan Admin Type
-------------------- ------- ----- ------ ------- ------
root@sonic:~# show interfaces portchannel
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available,
S - selected, D - deselected, * - not synced
No. Team Dev Protocol Ports
----- ---------- ---------- -------
root@sonic:~#
Steps to reproduce the issue:
- config interface ip add
Describe the results you received:
No error is thrown at CLI
No error log in syslog
Describe the results you expected:
The configuration should be rejected and CLI command should throw error
Output of show version:
Seen in master and all other branches. This is a day 1 issue.
Output of show techsupport:
(paste your output here or download and attach the file here )
Additional information you deem important (e.g. issue happens only occasionally):
Description
There is no interface name validation when adding IP address. Below are some examples
Steps to reproduce the issue:
Describe the results you received:
No error is thrown at CLI
No error log in syslog
Describe the results you expected:
The configuration should be rejected and CLI command should throw error
Output of
show version:Seen in master and all other branches. This is a day 1 issue.
Output of
show techsupport:Additional information you deem important (e.g. issue happens only occasionally):