Skip to content

Commit

Permalink
Merge pull request #2 from freifunkMUC/fallback-domain-configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biii authored May 20, 2024
2 parents cb555ce + bda7230 commit bc0d295
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions OMADA_respondd.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ logging_config:
- console
level: DEBUG
version: 1
fallback_domain: "omada_respondd_fallback" # optional
1 change: 1 addition & 0 deletions omada_respondd/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def from_dict(cls, cfg: Dict[str, str]) -> "Config":
unicast_port=cfg["unicast_port"],
interface=cfg["interface"],
verbose=cfg["verbose"],
fallback_domain=cfg.get("fallback_domain", "omada_respondd_fallback"),
)


Expand Down
4 changes: 1 addition & 3 deletions omada_respondd/omada_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,7 @@ def get_infos():
gateway6=offloader.get("gateway6", None),
gateway_nexthop=offloader_id,
neighbour_macs=neighbour_macs,
domain_code=offloader.get(
"domain", "ffmuc_omada_respondd_fallback"
),
domain_code=offloader.get("domain", cfg.fallback_domain),
# autoupdater=autoupgrade,
)
)
Expand Down

0 comments on commit bc0d295

Please sign in to comment.