feat(appliance): show egress MAC on the console banner#532
Merged
Conversation
The console banner already lists Web UI / Host mgmt / Hostname; add the egress interface's MAC so an operator can set a DHCP reservation (pin the appliance to a stable IP) straight from the console — no SSH, no hunting through 'ip link'. That reservation is the prerequisite for a public DNS A-record + TLS hostname (ADR-105). Adds egress_iface()/egress_mac() helpers mirroring primary_ip().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add the egress interface's MAC address to the console-TUI banner, next to Web UI / Host mgmt / Hostname.
Why
To pin the appliance to a stable LAN IP you set a DHCP reservation, which needs the NIC's MAC. Surfacing it on the console (no SSH, no
ip linkhunting) makes that a self-service step — and the reservation is the prerequisite for a public DNS A-record + TLS hostname (ADR-105). Came straight out of dogfooding the zero-config appliance boot: the first thing you want after it grabs a DHCP lease is its MAC, to pin it.How
egress_iface()/egress_mac()helpers (mirroringprimary_ip()—ip route get 1.1.1.1, then/sys/class/net/<if>/address); one banner line. Degrades to(unknown)if offline.