Use the print_attr_val() function introduced by the previous patch
to simplify the get command.
Signed-off-by: Martin Mares <mj@ucw.cz>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19641 3c298f89-4303-0410-b956-a3cf2f4a3e73
Add a "show" command, which displays all attributes of the selected port,
VLAN, or of the whole switch.
Signed-off-by: Martin Mares <mj@ucw.cz>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19640 3c298f89-4303-0410-b956-a3cf2f4a3e73
The command line parser was unsystematic and it silently ignored
many illegal combinations of options. Try to clean that up.
Signed-off-by: Martin Mares <mj@ucw.cz>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19639 3c298f89-4303-0410-b956-a3cf2f4a3e73