ffnord / mesh-announce

Discussion at #mesh-announce:irc.hackint.org and (separately) at
https://matrix.to/#/!MjLIHcALOcENXZWQlH:irc.hackint.org/$1547640760901FmKaD:matrix.eclabs.de
13 stars 45 forks source link

[FEATURE] Allow combination of separate domain codes for a multi domain setup #56

Closed herbetom closed 4 years ago

herbetom commented 4 years ago

Currently there is no way to use the new -n <domain code> option (thanks for implementing that) in a multi domain setup. Unless you start for every domain a seperate instance of mesh-announce.

In the example for a multi-domain setup: respondd.py -d /opt/mesh-announce/providers -i meshvpn-one -i br-one -i bat-one -b bat-one -i meshvpn-two -i br-two -i bat-two -b bat-two -i meshvpn-three -i br-three -i bat-three -b bat-three it seems to be suggested not to run multiple instances of mesh-announce for multi domain.

I don't know which would be the best way to include this information, but somehow you should be able to do this.

This also extends to other options, but -n seems to me like something esential for multi domain.

AiyionPrime commented 4 years ago

ffh has the same interest. What do you thin about an option e.g. called "-df" for domain file, which would specify the path to a json file containing a dictionary with keys called like bat interfaces and values called like the matching domainname?

herbetom commented 4 years ago

For me that sounds like an interesting idea.

AiyionPrime commented 4 years ago

I just forgot to hit the comment button two hours ago. The PR is incoming. :)