Gabor Juhos 2e339a6466 swconfig: fix backward compatibility
swconfig fails to load uci configuration after the generic switch
identifier changes.

root@OpenWrt:/# uci show network | grep switch
network.@switch[0]=switch
network.@switch[0].name=eth0
network.@switch[0].reset=1
network.@switch[0].enable_vlan=1
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device=eth0
network.@switch_vlan[0].vlan=1
network.@switch_vlan[0].ports=0t 2 3 4 5
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device=eth0
network.@switch_vlan[1].vlan=2
network.@switch_vlan[1].ports=0t 1
root@OpenWrt:/# swconfig dev eth0 load /etc/config/network
Failed to apply configuration for switch 'switch0'
root@OpenWrt:/# swconfig dev switch0 load /etc/config/network
Failed to apply configuration for switch 'switch0'

SVN-Revision: 27820
2011-07-28 19:54:11 +00:00
..
2011-03-17 07:23:28 +00:00
2011-03-07 12:59:19 +00:00
2009-06-13 16:47:22 +00:00
2010-04-23 11:27:29 +00:00
2011-07-09 07:28:00 +00:00
2011-03-01 15:41:28 +00:00
2011-07-17 15:53:34 +00:00
2011-07-24 15:08:17 +00:00
2009-12-19 22:19:42 +00:00
2011-07-17 19:26:35 +00:00
2011-07-10 10:40:37 +00:00
2011-07-07 18:20:47 +00:00
2011-07-17 19:27:14 +00:00
2010-09-30 10:48:37 +00:00
2011-07-07 09:43:04 +00:00
2011-07-28 17:34:44 +00:00
2010-09-30 10:48:37 +00:00
2011-07-17 22:47:56 +00:00
2010-10-27 21:24:06 +00:00
2011-07-17 19:27:34 +00:00
2011-07-19 06:59:47 +00:00