Skip to content
Snippets Groups Projects
Commit 4ea54e3f authored by Codrin Ciubotariu's avatar Codrin Ciubotariu Committed by York Sun
Browse files

common/cmd_ethsw: Add generic commands for Ethernet Switches


This patch creates a flexible parser for Ethernet Switch
configurations that should support complex commands.
The parser searches for predefined keywords in the command
and calls the proper function when a match is found.
Also, the parser allows for optional keywords, such as
"port", to apply the command on a port
or on all ports. For now, the defined commands are:
ethsw [port <port_no>] { enable | disable | show }

Signed-off-by: default avatarCodrin Ciubotariu <codrin.ciubotariu@freescale.com>
Reviewed-by: default avatarYork Sun <yorksun@freescale.com>
parent 9de05987
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment