meta-google: gbmc-bridge: Send hostname in RAs
This adds support for a process that monitors hostname changes and adds
the current hostnmae as a "DNS Search List" field entry in the RA
messages from a node. This makes it possible to discover the hostnames
of nodes within the machine simply by looking at RA messages.
Tested: Ran on a machine and verified with `rdisc6 gbmcbr` that the
hostname was being included in RA messages and updated after
`hostnamectl set-hostname <new name>`
Change-Id: Iac8ee6300384191f4fb8ec3bf252afe84ef814c0
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meta-google/recipes-google/networking/gbmc-bridge.bb b/meta-google/recipes-google/networking/gbmc-bridge.bb
index 3f20530..ba4b691 100644
--- a/meta-google/recipes-google/networking/gbmc-bridge.bb
+++ b/meta-google/recipes-google/networking/gbmc-bridge.bb
@@ -17,6 +17,8 @@
file://gbmc-br-from-ra.sh \
file://gbmc-br-ensure-ra.sh \
file://gbmc-br-ensure-ra.service \
+ file://gbmc-br-hostname.sh \
+ file://gbmc-br-hostname.service \
file://gbmc-br-gw-src.sh \
file://gbmc-br-nft.sh \
file://gbmc-br-dhcp.sh \
@@ -49,6 +51,7 @@
SYSTEMD_SERVICE:${PN} += " \
gbmc-br-ensure-ra.service \
+ gbmc-br-hostname.service \
gbmc-br-dhcp.service \
gbmc-br-dhcp-term.service \
gbmc-br-load-ip.service \
@@ -123,10 +126,12 @@
install -d -m0755 ${D}${libexecdir}
install -m0755 ${WORKDIR}/gbmc-br-ensure-ra.sh ${D}${libexecdir}/
+ install -m0755 ${WORKDIR}/gbmc-br-hostname.sh ${D}${libexecdir}/
install -m0755 ${WORKDIR}/gbmc-br-dhcp.sh ${D}${libexecdir}/
install -m0755 ${WORKDIR}/gbmc-br-dhcp-term.sh ${D}${libexecdir}/
install -d -m0755 ${D}${systemd_system_unitdir}
install -m0644 ${WORKDIR}/gbmc-br-ensure-ra.service ${D}${systemd_system_unitdir}/
+ install -m0644 ${WORKDIR}/gbmc-br-hostname.service ${D}${systemd_system_unitdir}/
install -m0644 ${WORKDIR}/gbmc-br-dhcp.service ${D}${systemd_system_unitdir}/
install -m0644 ${WORKDIR}/gbmc-br-dhcp-term.service ${D}${systemd_system_unitdir}/
install -m0644 ${WORKDIR}/gbmc-br-load-ip.service ${D}${systemd_system_unitdir}/