opentechinstitute / commotiond

The system management daemon for the Commotion Wireless Project.
https://commotionwireless.net
GNU Affero General Public License v3.0
26 stars 21 forks source link

Add OLSRd gateway selection support #52

Open areynold opened 10 years ago

areynold commented 10 years ago

We already use SmartGateway, so it should be possible to create an interface to allow users to select their gateway based on certain criteria. This would ideally integrate with service advertisements and servald signing, so that we would have more criteria upon which to select than simple ETX.

(Was issue 364 on code.commotionwireless.net)

seamustuohy commented 10 years ago

Per: https://github.com/opentechinstitute/luci-commotion/issues/85 @jheretic I will add UCI bindings to add options and values to the /etc/config/network "plug" network. Please let me know what you would like the final options and values named and I will update them in the interface. If we should combine some of these let me know.

1) for advertising the gateway over the mesh option advertised (true/false) 2) for configuring the way dhcp is handled on the interface option configuration (client/host/auto) 3) for turning on meshing on the interface option meshed (true/false)

jheretic commented 10 years ago

@elationfoundation Sounds good. I would maybe change the second option to be 'dhcp' rather than 'configuration.' However, this issue is for allowing a node to select a gateway from a list other than the one that OLSRd considers to be the default, not the option that we discussed yesterday. That one is https://github.com/opentechinstitute/commotiond/issues/43

seamustuohy commented 10 years ago

Darn... woops! I will use those values then.

jheretic commented 10 years ago

@elationfoundation Not to hijack this issue further, but there is one further option: client_bridge, which holds the configuration name of the bridge which the plug interface now tries to add itself to when it fails to obtain a lease.