Skip to content

Commit 8284ea7

Browse files
jukkarfabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent 56a6910 commit 8284ea7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

doc/releases/migration-guide-4.0.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ Networking
174174
:c:func:`coap_get_block2_option` now accepts an additional ``bool *has_more``
175175
parameter, to store the value of the more flag. (:github:`76052`)
176176

177+
* The Ethernet bridge shell is moved under network shell. This is done so that
178+
all the network shell activities can be found under ``net`` shell command.
179+
After this change the bridge shell is used by ``net bridge`` command.
180+
177181
Other Subsystems
178182
****************
179183

subsys/net/l2/ethernet/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ endif # NET_ETHERNET_BRIDGE
115115
config NET_ETHERNET_BRIDGE_SHELL
116116
bool "Ethernet Bridging management shell"
117117
depends on NET_ETHERNET_BRIDGE
118-
select SHELL
118+
select NET_SHELL
119119
help
120120
Enables shell utility to manage bridge configuration interactively.
121121

subsys/net/l2/ethernet/bridge_shell.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ SHELL_STATIC_SUBCMD_SET_CREATE(bridge_commands,
221221
SHELL_SUBCMD_SET_END
222222
);
223223

224-
SHELL_CMD_REGISTER(bridge, &bridge_commands, "Ethernet Bridge commands", NULL);
224+
SHELL_SUBCMD_ADD((net), bridge, &bridge_commands,
225+
"Ethernet bridge commands.",
226+
cmd_bridge_show, 1, 1);
225227

226228
#if defined(CONFIG_NET_ETHERNET_BRIDGE_DEFAULT)
227229
static ETH_BRIDGE_INIT(shell_default_bridge);

0 commit comments

Comments
 (0)