swconfig: support receiving SWITCH_TYPE_LINK from kernel
authorJohn Crispin <john@openwrt.org>
Wed, 23 Dec 2015 19:24:45 +0000 (19:24 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 23 Dec 2015 19:24:45 +0000 (19:24 +0000)
commit8536afae6f8ff3196aa8457cc0a53c5c0ea9fbac
tree195c640b32aa188a8e71f820b3847dcef121b138
parent67e10d757f88d9f2e0a0be8c96c01d951a2fca6e
swconfig: support receiving SWITCH_TYPE_LINK from kernel

When using cli, print link state the same way kernel used to do it.
This will allow kernel switching PORT_LINK from SWITCH_TYPE_STRING.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 47998
package/network/config/swconfig/src/cli.c
package/network/config/swconfig/src/swlib.c
package/network/config/swconfig/src/swlib.h