diff options
author | William A. Kennington III <wak@google.com> | 2022-05-10 20:52:09 +0300 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2022-05-11 05:45:05 +0300 |
commit | 21e9a7487d3b871732958155d0a28f49b445871b (patch) | |
tree | 6c8f266838aada415e0080ae33c8d7388541f5a3 | |
parent | bff8f1a46b0b8aba2148db6ac92ad281a3c3d9ae (diff) | |
download | openbmc-21e9a7487d3b871732958155d0a28f49b445871b.tar.xz |
meta-google: gbmc-ncsi-config: Remove impersonated IPv6 address
This is required for routing to work correctly between the impersonated
node and the BMC. We still respond to neighbor solicits for the
impersonated node but our routing is fixed.
Change-Id: I7db57233348532576b3e2a9cd71ae0406367198e
Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r-- | meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in index fdfa87803f..d6bc9eb77c 100644 --- a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in +++ b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in @@ -39,6 +39,16 @@ PreferredLifetime=0 EOF } +gbmc_ncsi_br_deprecated_ips_host_contents() { + local addr="$1" + + cat <<EOF +[Network] +IPv6ProxyNDP=yes +IPv6ProxyNDPAddress=$addr +EOF +} + gbmc_ncsi_br_deprecated_ips_update() { [ -n "$gbmc_ncsi_br_deprecated_ips_init" ] || return [ "$gbmc_ncsi_br_deprecated_ips_confip" != "$gbmc_ncsi_br_deprecated_ips_lastip" ] || return @@ -66,7 +76,7 @@ gbmc_ncsi_br_deprecated_ips_update() { contents+="$(gbmc_ncsi_br_deprecated_ips_addr_contents "$pfx")"$'\n' contents+="$(gbmc_ncsi_br_deprecated_ips_addr_contents "$stateless_pfx")"$'\n' contents+="$(gbmc_ncsi_br_deprecated_ips_addr_contents "$stateless_ip")"$'\n' - contents+="$(gbmc_ncsi_br_deprecated_ips_addr_contents "$host_pfx")"$'\n' + contents+="$(gbmc_ncsi_br_deprecated_ips_host_contents "$host_pfx")"$'\n' read -r -d '' nfcontents <<EOF table inet filter { chain ncsi_input { |