You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the BGP feature is disabled or not running, as in a typical layer 2 switch config, IP addresses cannot be removed from interfaces.
Steps to reproduce the issue:
sudo config interface ip add SomePortChannel SomeValidIP/Net
sudo config feature state bgp disabled
a. show feature status reports bgp disabled; may take several seconds
sudo config interface ip remove SomePortChannel SomeValidIP/Net
a. Error response from daemon: No such container: bgp
b. Alternately, if bgp was running but stopped:
c. Error response from daemon: Container (long name) is not running
b. In either case, IP is not removed
Showing the issue is in fact BGP as the command reports:
sudo config feature state bgp enabled
a. show feature status reports bgp enabled; may take several seconds
sudo config interface ip remove SomePortChannel SomeValidIP/Net
a. Command returns without error
b. IP is removed
No change if this is done with a plain Ethernet port instead of portchannel
Describe the results you received:
Switch is unable to remove IPs from interfaces without the BGP container running, preventing use as a layer 2 switch without running extra services.
Describe the results you expected:
Interfaces should be configurable without dependency on dynamic routing protocols. Command should not attempt to make changes to BGP if the feature is not enabled.
Description
When the BGP feature is disabled or not running, as in a typical layer 2 switch config, IP addresses cannot be removed from interfaces.
Steps to reproduce the issue:
sudo config interface ip add SomePortChannel SomeValidIP/Net
sudo config feature state bgp disabled
a. show feature status reports bgp disabled; may take several seconds
sudo config interface ip remove SomePortChannel SomeValidIP/Net
a.
Error response from daemon: No such container: bgp
b. Alternately, if bgp was running but stopped:
c.
Error response from daemon: Container (long name) is not running
b. In either case, IP is not removed
Showing the issue is in fact BGP as the command reports:
sudo config feature state bgp enabled
a. show feature status reports bgp enabled; may take several seconds
sudo config interface ip remove SomePortChannel SomeValidIP/Net
a. Command returns without error
b. IP is removed
No change if this is done with a plain Ethernet port instead of portchannel
Describe the results you received:
Switch is unable to remove IPs from interfaces without the BGP container running, preventing use as a layer 2 switch without running extra services.
Describe the results you expected:
Interfaces should be configurable without dependency on dynamic routing protocols. Command should not attempt to make changes to BGP if the feature is not enabled.
Output of
show version
:Output of
show techsupport
:Attached
sonic_dump_fss-dv-sw1_20241226_042130 - 1.tar.gz
Additional information you deem important (e.g. issue happens only occasionally):
Fresh local build of 202411 with:
The text was updated successfully, but these errors were encountered: