Symptom
Configured session limits will not work as expected when port-profile configurations are present in the switch . For example, when the session limits is configured foe 6 as indicated below, we are only able to get 2 line vty sessions to the switch and the third one gets rejected stating that ""CLI session limit 6 reached. Exiting."
Conditions
When port profile configuration is present
Eg:
port-profile type ethernet TEST
switchport
switchport access vlan 1
state enabled
interface Ethernet1/1
inherit port-profile TEST
line vty
session-limit 6
Workaround
Reload the switch will fix the issue temporarily
Issue will resurface, if we reapply the port-profile to any interface
Further Problem Description