meta-google: gbmc-bridge: Refactor ip from bridge script
This refactors the RA querying and parsing logic so that other script
can leverage the functionality if they want to discover hostname and IP
information from RAs. There are no functional changes in this commit.
Tested: Verified that the script still determines the NCSI hostname and
IP correctly on machines using the script.
Change-Id: I751048440f2e9eab1628600a9bdc3701f07adf76
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 ba4b691..a9f2761 100644
--- a/meta-google/recipes-google/networking/gbmc-bridge.bb
+++ b/meta-google/recipes-google/networking/gbmc-bridge.bb
@@ -19,6 +19,7 @@
file://gbmc-br-ensure-ra.service \
file://gbmc-br-hostname.sh \
file://gbmc-br-hostname.service \
+ file://gbmc-ip-from-ra.sh \
file://gbmc-br-gw-src.sh \
file://gbmc-br-nft.sh \
file://gbmc-br-dhcp.sh \
@@ -36,6 +37,7 @@
${datadir}/gbmc-ip-monitor \
${datadir}/gbmc-br-dhcp \
${datadir}/gbmc-br-lib.sh \
+ ${datadir}/gbmc-ip-from-ra.sh \
${systemd_unitdir}/network \
${sysconfdir}/nftables \
"
@@ -139,6 +141,7 @@
install -m0644 ${WORKDIR}/50-gbmc-psu-hardreset.sh ${D}${datadir}/gbmc-br-dhcp/
install -m0644 ${WORKDIR}/gbmc-br-lib.sh ${D}${datadir}/
+ install -m0644 ${WORKDIR}/gbmc-ip-from-ra.sh ${D}${datadir}/
install -d ${D}/${bindir}
install -m0755 ${WORKDIR}/gbmc-start-dhcp.sh ${D}${bindir}/