net: shell: Move bridge shell under net shell

All the network related shell activities should be under
network shell so moving it to "net bridge ..." command.
Add this information to migration guide.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
Jukka Rissanen 2024-08-19 15:21:40 +03:00 committed by Fabio Baltieri
commit 8284ea7b11
3 changed files with 8 additions and 2 deletions

View file

@ -174,6 +174,10 @@ Networking
:c:func:`coap_get_block2_option` now accepts an additional ``bool *has_more`` :c:func:`coap_get_block2_option` now accepts an additional ``bool *has_more``
parameter, to store the value of the more flag. (:github:`76052`) parameter, to store the value of the more flag. (:github:`76052`)
* The Ethernet bridge shell is moved under network shell. This is done so that
all the network shell activities can be found under ``net`` shell command.
After this change the bridge shell is used by ``net bridge`` command.
Other Subsystems Other Subsystems
**************** ****************

View file

@ -115,7 +115,7 @@ endif # NET_ETHERNET_BRIDGE
config NET_ETHERNET_BRIDGE_SHELL config NET_ETHERNET_BRIDGE_SHELL
bool "Ethernet Bridging management shell" bool "Ethernet Bridging management shell"
depends on NET_ETHERNET_BRIDGE depends on NET_ETHERNET_BRIDGE
select SHELL select NET_SHELL
help help
Enables shell utility to manage bridge configuration interactively. Enables shell utility to manage bridge configuration interactively.

View file

@ -221,7 +221,9 @@ SHELL_STATIC_SUBCMD_SET_CREATE(bridge_commands,
SHELL_SUBCMD_SET_END SHELL_SUBCMD_SET_END
); );
SHELL_CMD_REGISTER(bridge, &bridge_commands, "Ethernet Bridge commands", NULL); SHELL_SUBCMD_ADD((net), bridge, &bridge_commands,
"Ethernet bridge commands.",
cmd_bridge_show, 1, 1);
#if defined(CONFIG_NET_ETHERNET_BRIDGE_DEFAULT) #if defined(CONFIG_NET_ETHERNET_BRIDGE_DEFAULT)
static ETH_BRIDGE_INIT(shell_default_bridge); static ETH_BRIDGE_INIT(shell_default_bridge);