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

Emit primary_domain_code #75

Closed AiyionPrime closed 3 years ago

AiyionPrime commented 3 years ago

This PR intends to resolve #61 and introduces two non-breaking changes.

  1. emit what was domain_code before, as primary_domain_code as well.
  2. optionally overwrite domain_code with a configured value (DomainCode) in order to allow the specification of a domain alias.

This is a feature of gluon since v2020.2. https://gluon.readthedocs.io/en/latest/releases/v2020.2.html#primary-domain-code

AiyionPrime commented 3 years ago

Tested on sn09 in hanover:

 "system": {
    "domain_code": "nordstadt",
    "primary_domain_code": "dom14"
  }
AiyionPrime commented 3 years ago

And unconfigured it's non-breaking:

"system": {
    "domain_code": "dom14",
    "primary_domain_code": "dom14"
  }
AiyionPrime commented 3 years ago

Is now successfully deployed on all supernodes in hanover.