diff options
author | William A. Kennington III <wak@google.com> | 2021-04-27 00:10:52 +0300 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2021-05-07 04:09:53 +0300 |
commit | 24615567082edbe4c287e994f92fb94afcedf185 (patch) | |
tree | de261a0bf0e121f174745518e35497b634ef1582 /meta-google/recipes-google/networking/gbmc-bridge.bb | |
parent | 5ba6d08d7f49d26ae466f6d826ed1d849972ad59 (diff) | |
download | openbmc-24615567082edbe4c287e994f92fb94afcedf185.tar.xz |
meta-google: gbmc-bridge: Assign stable addresses from RAs
We want BMCs to be able to discover their machine prefix and assign a
stable IPv6 based on that prefix combined with the MAC of the BMC.
Change-Id: I67b8c56f50ff3a970175abcb81b429ceb1258b69
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'meta-google/recipes-google/networking/gbmc-bridge.bb')
-rw-r--r-- | meta-google/recipes-google/networking/gbmc-bridge.bb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-google/recipes-google/networking/gbmc-bridge.bb b/meta-google/recipes-google/networking/gbmc-bridge.bb index a4e7881ed..80a42bd17 100644 --- a/meta-google/recipes-google/networking/gbmc-bridge.bb +++ b/meta-google/recipes-google/networking/gbmc-bridge.bb @@ -15,6 +15,9 @@ SRC_URI += " \ file://ipmi.service.in \ file://50-gbmc-br.rules \ file://gbmc-br-ula.sh \ + file://gbmc-br-from-ra.sh \ + file://gbmc-br-ensure-ra.sh \ + file://gbmc-br-ensure-ra.service \ " FILES_${PN}_append = " \ @@ -25,11 +28,15 @@ FILES_${PN}_append = " \ " RDEPENDS_${PN}_append = " \ + bash \ gbmc-ip-monitor \ mstpd-mstpd \ network-sh \ + ndisc6-rdisc6 \ " +SYSTEMD_SERVICE_${PN} += "gbmc-br-ensure-ra.service" + GBMC_BR_MAC_ADDR ?= "" # Generated via https://cd34.com/rfc4193/ based on a MAC from a machine I own @@ -81,4 +88,10 @@ do_install() { mondir=${D}${datadir}/gbmc-ip-monitor install -d -m0755 "$mondir" install -m0644 ${WORKDIR}/gbmc-br-ula.sh "$mondir"/ + install -m0644 ${WORKDIR}/gbmc-br-from-ra.sh "$mondir"/ + + install -d -m0755 ${D}${libexecdir} + install -m0755 ${WORKDIR}/gbmc-br-ensure-ra.sh ${D}${libexecdir}/ + install -d -m0755 ${D}${systemd_system_unitdir} + install -m0755 ${WORKDIR}/gbmc-br-ensure-ra.service ${D}${systemd_system_unitdir}/ } |