libs/core: fix various problems in the network model
libs/core: fix various problems in the network model

cappiewu/luci,hnyman/luci,shangjiyu/luci-with-extra,chris5560/openwrt-luci,aircross/OpenWrt-Firefly-LuCI,openwrt-es/openwrt-luci,bittorf/luci,fkooman/luci,palmettos/cnLuCI,hnyman/luci,aa65535/luci,maxrio/luci981213,shangjiyu/luci-with-extra,nwf/openwrt-luci,jlopenwrtluci/luci,lcf258/openwrtcn,keyidadi/luci,artynet/luci,slayerrensky/luci,forward619/luci,981213/luci-1,joaofvieira/luci,kuoruan/luci,kuoruan/luci,forward619/luci,ff94315/luci-1,NeoRaider/luci,nmav/luci,Kyklas/luci-proto-hso,cshore-firmware/openwrt-luci,rogerpueyo/luci,cshore-firmware/openwrt-luci,artynet/luci,aa65535/luci,cshore-firmware/openwrt-luci,RedSnake64/openwrt-luci-packages,dwmw2/luci,slayerrensky/luci,cshore/luci,openwrt/luci,forward619/luci,cshore/luci,forward619/luci,RuiChen1113/luci,schidler/ionic-luci,nmav/luci,urueedi/luci,daofeng2015/luci,schidler/ionic-luci,jchuang1977/luci-1,tobiaswaldvogel/luci,sujeet14108/luci,opentechinstitute/luci,dwmw2/luci,palmettos/test,forward619/luci,thesabbir/luci,oneru/luci,forward619/luci,bittorf/luci,jorgifumi/luci,hnyman/luci,Hostle/luci,david-xiao/luci,wongsyrone/luci-1,florian-shellfire/luci,teslamint/luci,Noltari/luci,lcf258/openwrtcn,tobiaswaldvogel/luci,palmettos/test,dwmw2/luci,nwf/openwrt-luci,RedSnake64/openwrt-luci-packages,chris5560/openwrt-luci,oyido/luci,rogerpueyo/luci,opentechinstitute/luci,Noltari/luci,daofeng2015/luci,florian-shellfire/luci,chris5560/openwrt-luci,florian-shellfire/luci,ff94315/luci-1,tobiaswaldvogel/luci,slayerrensky/luci,mumuqz/luci,male-puppies/luci,palmettos/cnLuCI,bittorf/luci,opentechinstitute/luci,ollie27/openwrt_luci,forward619/luci,marcel-sch/luci,marcel-sch/luci,dwmw2/luci,LuttyYang/luci,florian-shellfire/luci,thess/OpenWrt-luci,remakeelectric/luci,hnyman/luci,opentechinstitute/luci,urueedi/luci,deepak78/new-luci,kuoruan/lede-luci,artynet/luci,981213/luci-1,harveyhu2012/luci,keyidadi/luci,teslamint/luci,Wedmer/luci,chris5560/openwrt-luci,lbthomsen/openwrt-luci,marcel-sch/luci,LazyZhu/openwrt-luci-trunk-mod,david-xiao/luci,sujeet14108/luci,taiha/luci,lbthomsen/openwrt-luci,oyido/luci,wongsyrone/luci-1,artynet/luci,ollie27/openwrt_luci,jlopenwrtluci/luci,mumuqz/luci,Noltari/luci,jorgifumi/luci,jlopenwrtluci/luci,Sakura-Winkey/LuCI,hnyman/luci,RedSnake64/openwrt-luci-packages,shangjiyu/luci-with-extra,LazyZhu/openwrt-luci-trunk-mod,lbthomsen/openwrt-luci,remakeelectric/luci,lbthomsen/openwrt-luci,tcatm/luci,Wedmer/luci,jchuang1977/luci-1,obsy/luci,NeoRaider/luci,aircross/OpenWrt-Firefly-LuCI,NeoRaider/luci,mumuqz/luci,rogerpueyo/luci,zhaoxx063/luci,ReclaimYourPrivacy/cloak-luci,obsy/luci,Sakura-Winkey/LuCI,schidler/ionic-luci,schidler/ionic-luci,bright-things/ionic-luci,cshore-firmware/openwrt-luci,mumuqz/luci,thesabbir/luci,marcel-sch/luci,zhaoxx063/luci,obsy/luci,Wedmer/luci,joaofvieira/luci,keyidadi/luci,palmettos/cnLuCI,taiha/luci,mumuqz/luci,thesabbir/luci,dismantl/luci-0.12,Noltari/luci,david-xiao/luci,kuoruan/lede-luci,nwf/openwrt-luci,lcf258/openwrtcn,oyido/luci,artynet/luci,Sakura-Winkey/LuCI,remakeelectric/luci,lcf258/openwrtcn,cshore/luci,Noltari/luci,jorgifumi/luci,shangjiyu/luci-with-extra,obsy/luci,tcatm/luci,chris5560/openwrt-luci,oyido/luci,aircross/OpenWrt-Firefly-LuCI,ReclaimYourPrivacy/cloak-luci,palmettos/cnLuCI,keyidadi/luci,Hostle/luci,wongsyrone/luci-1,tobiaswaldvogel/luci,kuoruan/lede-luci,thess/OpenWrt-luci,obsy/luci,bittorf/luci,urueedi/luci,ReclaimYourPrivacy/cloak-luci,florian-shellfire/luci,tcatm/luci,RuiChen1113/luci,Hostle/luci,ollie27/openwrt_luci,kuoruan/luci,deepak78/new-luci,tcatm/luci,daofeng2015/luci,ReclaimYourPrivacy/cloak-luci,marcel-sch/luci,openwrt/luci,thesabbir/luci,remakeelectric/luci,thesabbir/luci,opentechinstitute/luci,openwrt-es/openwrt-luci,openwrt/luci,male-puppies/luci,Hostle/luci,remakeelectric/luci,jorgifumi/luci,thesabbir/luci,aa65535/luci,remakeelectric/luci,kuoruan/lede-luci,shangjiyu/luci-with-extra,LazyZhu/openwrt-luci-trunk-mod,kuoruan/luci,thess/OpenWrt-luci,maxrio/luci981213,marcel-sch/luci,jchuang1977/luci-1,chris5560/openwrt-luci,db260179/openwrt-bpi-r1-luci,wongsyrone/luci-1,obsy/luci,fkooman/luci,RuiChen1113/luci,deepak78/new-luci,db260179/openwrt-bpi-r1-luci,RedSnake64/openwrt-luci-packages,openwrt-es/openwrt-luci,obsy/luci,openwrt-es/openwrt-luci,nwf/openwrt-luci,slayerrensky/luci,sujeet14108/luci,aa65535/luci,teslamint/luci,thess/OpenWrt-luci,daofeng2015/luci,fkooman/luci,LazyZhu/openwrt-luci-trunk-mod,david-xiao/luci,cshore-firmware/openwrt-luci,hnyman/luci,nwf/openwrt-luci,maxrio/luci981213,db260179/openwrt-bpi-r1-luci,jchuang1977/luci-1,openwrt/luci,LuttyYang/luci,cappiewu/luci,Sakura-Winkey/LuCI,deepak78/new-luci,bittorf/luci,chris5560/openwrt-luci,cshore-firmware/openwrt-luci,daofeng2015/luci,tobiaswaldvogel/luci,cappiewu/luci,palmettos/cnLuCI,deepak78/new-luci,Sakura-Winkey/LuCI,aircross/OpenWrt-Firefly-LuCI,lcf258/openwrtcn,aa65535/luci,Hostle/openwrt-luci-multi-user,cappiewu/luci,jlopenwrtluci/luci,RedSnake64/openwrt-luci-packages,Noltari/luci,Wedmer/luci,LuttyYang/luci,zhaoxx063/luci,Hostle/openwrt-luci-multi-user,dwmw2/luci,taiha/luci,MinFu/luci,NeoRaider/luci,zhaoxx063/luci,oneru/luci,openwrt/luci,bright-things/ionic-luci,lbthomsen/openwrt-luci,Hostle/openwrt-luci-multi-user,LuttyYang/luci,Wedmer/luci,keyidadi/luci,harveyhu2012/luci,thess/OpenWrt-luci,forward619/luci,MinFu/luci,palmettos/cnLuCI,florian-shellfire/luci,male-puppies/luci,openwrt/luci,openwrt-es/openwrt-luci,db260179/openwrt-bpi-r1-luci,kuoruan/lede-luci,aa65535/luci,urueedi/luci,cappiewu/luci,obsy/luci,lbthomsen/openwrt-luci,cshore/luci,thesabbir/luci,male-puppies/luci,nwf/openwrt-luci,981213/luci-1,marcel-sch/luci,LazyZhu/openwrt-luci-trunk-mod,jorgifumi/luci,taiha/luci,zhaoxx063/luci,slayerrensky/luci,MinFu/luci,LuttyYang/luci,teslamint/luci,cappiewu/luci,taiha/luci,tobiaswaldvogel/luci,LuttyYang/luci,bittorf/luci,openwrt/luci,rogerpueyo/luci,MinFu/luci,db260179/openwrt-bpi-r1-luci,nmav/luci,deepak78/new-luci,thess/OpenWrt-luci,taiha/luci,Hostle/openwrt-luci-multi-user,Hostle/luci,schidler/ionic-luci,dismantl/luci-0.12,wongsyrone/luci-1,jchuang1977/luci-1,sujeet14108/luci,nmav/luci,Sakura-Winkey/LuCI,thesabbir/luci,joaofvieira/luci,ollie27/openwrt_luci,oyido/luci,Kyklas/luci-proto-hso,Kyklas/luci-proto-hso,lcf258/openwrtcn,RedSnake64/openwrt-luci-packages,ollie27/openwrt_luci,artynet/luci,openwrt-es/openwrt-luci,Hostle/openwrt-luci-multi-user,artynet/luci,nmav/luci,fkooman/luci,Noltari/luci,david-xiao/luci,Hostle/luci,remakeelectric/luci,shangjiyu/luci-with-extra,ReclaimYourPrivacy/cloak-luci,joaofvieira/luci,fkooman/luci,palmettos/test,981213/luci-1,david-xiao/luci,hnyman/luci,male-puppies/luci,Kyklas/luci-proto-hso,keyidadi/luci,fkooman/luci,ff94315/luci-1,harveyhu2012/luci,kuoruan/luci,wongsyrone/luci-1,slayerrensky/luci,palmettos/cnLuCI,bittorf/luci,maxrio/luci981213,opentechinstitute/luci,teslamint/luci,db260179/openwrt-bpi-r1-luci,NeoRaider/luci,schidler/ionic-luci,wongsyrone/luci-1,ReclaimYourPrivacy/cloak-luci,kuoruan/luci,dismantl/luci-0.12,LazyZhu/openwrt-luci-trunk-mod,ReclaimYourPrivacy/cloak-luci,bright-things/ionic-luci,tobiaswaldvogel/luci,opentechinstitute/luci,aircross/OpenWrt-Firefly-LuCI,MinFu/luci,daofeng2015/luci,Wedmer/luci,cshore/luci,bittorf/luci,palmettos/test,dwmw2/luci,bright-things/ionic-luci,maxrio/luci981213,oyido/luci,thess/OpenWrt-luci,teslamint/luci,lcf258/openwrtcn,schidler/ionic-luci,jlopenwrtluci/luci,oneru/luci,oyido/luci,harveyhu2012/luci,marcel-sch/luci,palmettos/cnLuCI,ff94315/luci-1,rogerpueyo/luci,keyidadi/luci,aa65535/luci,MinFu/luci,nmav/luci,ff94315/luci-1,Wedmer/luci,chris5560/openwrt-luci,kuoruan/lede-luci,db260179/openwrt-bpi-r1-luci,cshore/luci,male-puppies/luci,aa65535/luci,harveyhu2012/luci,sujeet14108/luci,jchuang1977/luci-1,nwf/openwrt-luci,bright-things/ionic-luci,981213/luci-1,Hostle/luci,Kyklas/luci-proto-hso,RuiChen1113/luci,deepak78/new-luci,lbthomsen/openwrt-luci,dismantl/luci-0.12,nmav/luci,RuiChen1113/luci,david-xiao/luci,joaofvieira/luci,Noltari/luci,taiha/luci,NeoRaider/luci,LazyZhu/openwrt-luci-trunk-mod,urueedi/luci,cshore-firmware/openwrt-luci,taiha/luci,sujeet14108/luci,Wedmer/luci,Sakura-Winkey/LuCI,joaofvieira/luci,ReclaimYourPrivacy/cloak-luci,cappiewu/luci,mumuqz/luci,urueedi/luci,palmettos/test,openwrt/luci,aircross/OpenWrt-Firefly-LuCI,hnyman/luci,mumuqz/luci,981213/luci-1,florian-shellfire/luci,jorgifumi/luci,zhaoxx063/luci,ff94315/luci-1,zhaoxx063/luci,bright-things/ionic-luci,MinFu/luci,opentechinstitute/luci,LazyZhu/openwrt-luci-trunk-mod,male-puppies/luci,jlopenwrtluci/luci,florian-shellfire/luci,teslamint/luci,kuoruan/lede-luci,joaofvieira/luci,daofeng2015/luci,kuoruan/luci,urueedi/luci,openwrt-es/openwrt-luci,Hostle/luci,oneru/luci,Noltari/luci,tcatm/luci,lcf258/openwrtcn,fkooman/luci,harveyhu2012/luci,sujeet14108/luci,LuttyYang/luci,tcatm/luci,oneru/luci,lbthomsen/openwrt-luci,kuoruan/luci,dismantl/luci-0.12,maxrio/luci981213,keyidadi/luci,daofeng2015/luci,nmav/luci,Hostle/openwrt-luci-multi-user,jorgifumi/luci,palmettos/test,cappiewu/luci,Hostle/openwrt-luci-multi-user,tcatm/luci,dismantl/luci-0.12,lcf258/openwrtcn,bright-things/ionic-luci,dismantl/luci-0.12,jchuang1977/luci-1,rogerpueyo/luci,remakeelectric/luci,db260179/openwrt-bpi-r1-luci,bright-things/ionic-luci,mumuqz/luci,maxrio/luci981213,tcatm/luci,Hostle/openwrt-luci-multi-user,joaofvieira/luci,harveyhu2012/luci,Kyklas/luci-proto-hso,jlopenwrtluci/luci,fkooman/luci,LuttyYang/luci,oneru/luci,urueedi/luci,openwrt-es/openwrt-luci,RuiChen1113/luci,ff94315/luci-1,cshore-firmware/openwrt-luci,ollie27/openwrt_luci,artynet/luci,aircross/OpenWrt-Firefly-LuCI,ollie27/openwrt_luci,Sakura-Winkey/LuCI,maxrio/luci981213,oneru/luci,male-puppies/luci,lcf258/openwrtcn,thess/OpenWrt-luci,RedSnake64/openwrt-luci-packages,RuiChen1113/luci,ff94315/luci-1,palmettos/test,oneru/luci,kuoruan/lede-luci,jorgifumi/luci,shangjiyu/luci-with-extra,palmettos/test,shangjiyu/luci-with-extra,slayerrensky/luci,cshore/luci,rogerpueyo/luci,jlopenwrtluci/luci,schidler/ionic-luci,rogerpueyo/luci,nmav/luci,sujeet14108/luci,cshore/luci,NeoRaider/luci,Kyklas/luci-proto-hso,MinFu/luci,981213/luci-1,RuiChen1113/luci,teslamint/luci,deepak78/new-luci,jchuang1977/luci-1,dwmw2/luci,artynet/luci,david-xiao/luci,zhaoxx063/luci,ollie27/openwrt_luci,wongsyrone/luci-1,slayerrensky/luci,tobiaswaldvogel/luci,dwmw2/luci,nwf/openwrt-luci,oyido/luci,NeoRaider/luci