Commit graph

10 commits

Author SHA1 Message Date
Felix Fietkau
e4dadf438e swconfig: Remove unused code
Signed-off-by: Martin Mares <mj@ucw.cz>

SVN-Revision: 19758
2010-02-19 17:33:46 +00:00
Felix Fietkau
1d1e4d1035 swconfig: add copyright for Martin Mares
Signed-off-by: Martin Mares <mj@ucw.cz>

SVN-Revision: 19642
2010-02-15 17:29:07 +00:00
Felix Fietkau
7dcd4af070 swconfig: use print_attr_val() in CMD_GET
Use the print_attr_val() function introduced by the previous patch
to simplify the get command.

Signed-off-by: Martin Mares <mj@ucw.cz>

SVN-Revision: 19641
2010-02-15 17:29:04 +00:00
Felix Fietkau
b7d662dce8 swconfig: add show command
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>

SVN-Revision: 19640
2010-02-15 17:29:00 +00:00
Felix Fietkau
cfb74b3b81 swconfig: clean up command line parsing
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>

SVN-Revision: 19639
2010-02-15 17:28:56 +00:00
Gabor Juhos
428f066b77 swconfig: show tagged port flag
SVN-Revision: 19238
2010-01-20 07:06:12 +00:00
Felix Fietkau
54bbc30687 swconfig: support providing the switch device name in an option instead of the section name - necessary to support switches that contain characters such as "-"
SVN-Revision: 19208
2010-01-18 00:38:04 +00:00
Felix Fietkau
ad9d1857a5 swconfig: use libnl-tiny instead of libnl
SVN-Revision: 15508
2009-04-30 13:57:38 +00:00
Felix Fietkau
2fe29deb90 swconfig: implement uci loading support
SVN-Revision: 15315
2009-04-21 01:35:30 +00:00
Felix Fietkau
487c622ac0 add new switch configuration api
SVN-Revision: 13009
2008-10-18 20:44:53 +00:00