-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

> In AA-rc1 I am trying to get the gateway of an interface:
> 
> root@OpenWrt:~# (. /lib/functions/network.sh; network_get_gateway
> foo wan0; echo $foo)
> 
> That returns nothing however.  wan0 however does have a route 
> configuration: [...]

Yeah, but note that it is in the inactive table, means the protocol
provides a defaultroute but it is suppressed by netifd, probably due
to "option defaultroute 0" in the uci config.

I could probably add a 3rd parameter to the network_get_* functions to
force reading the entries of the inactive table - right now it only
regards effective configuration values.

~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlDDiDAACgkQdputYINPTPP8YACeK0iSzbzqHiikRw0vNRn7kH3I
T3IAn3yM6wOnAkwEHm7kTAa1Zx1SVAOM
=FYjR
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to