TWSD-505 APV not capturing any packet on the interface which has names with spaces in the interface name.

Review Request #1123 — Created Oct. 29, 2025 and submitted — Latest diff uploaded

mmiriam
APV10
rel_apv_10_7
TWSD-505
ngurunathan, pradeep, tanya

TWSD-505 APV not capturing any packet on the interface which has names with spaces in the interface name. Restrict the user to not configure port name with space and show some error message.

Before fix:

AN(config)#interface name port2 "ab cd"
The interface's name has been changed from "port2" to "ab cd".

AN(config)#show interface "ab cd"
ab cd(port2): flags=4008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::20c:29ff:fedc:319e prefixlen 64 scopeid 0x2
inet 192.168.162.137 netmask 0xffffff00 broadcast 192.168.162.255
ether 00:0c:29:dc:31:9e
media: autoselect
status: active
webwall status: OFF
Hardware is VMXNET3 Ethernet Controller
Input total: 8706 packets, 883996 bytes
multicasts: 8432, Input errors: 0
drops: 0
Output total: 226 packets, 28130 bytes
multicasts: 0, Output errors: 0
Collosions: 0
packet drop (not permit): 0
tcp 0 udp 0 icmp 0 ah 0 esp 0
packet drop (deny): 0
tcp 0 udp 0 icmp 0 ah 0 esp 0
300 seconds input rate 7600 bits/sec, 9 packets/sec
300 seconds output rate 496 bits/sec, 0 packets/sec


After fix:

AN(config)#interface name port2 "dh ph"
The name can not have any space
Failed to execute "interface name port2 "dh ph""

AN(config)#
AN(config)#interface name port2 "dh ph@"
The name can not have any space
Failed to execute "interface name port2 "dh ph@""

    Loading...