summaryrefslogtreecommitdiff
path: root/meta-google/recipes-google/networking/gbmc-bridge.bb
diff options
context:
space:
mode:
authorYuxiao Zhang <yuxiaozhang@google.com>2023-05-12 20:55:26 +0300
committerYuxiao Zhang <yuxiaozhang@google.com>2023-05-24 01:12:59 +0300
commitcb56ec3c3ff5060719ab9b28c4a8e52bfe9c336c (patch)
treeb3529e181960dc6df63a02b6f38f5d60f63b7688 /meta-google/recipes-google/networking/gbmc-bridge.bb
parentee5dd4aec18d222f499569ab464549d7cc674d86 (diff)
downloadopenbmc-cb56ec3c3ff5060719ab9b28c4a8e52bfe9c336c.tar.xz
meta-google: gbmc-bridge: install nft rules for traffic redirection
On bmc connects to multiple CNs, services may want to tell the source of the traffic. This new package is to install the rules accordingly. Change-Id: I5df17151cb5056386b5eafdcd4ac1ceb3f37e298 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
Diffstat (limited to 'meta-google/recipes-google/networking/gbmc-bridge.bb')
-rw-r--r--meta-google/recipes-google/networking/gbmc-bridge.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-google/recipes-google/networking/gbmc-bridge.bb b/meta-google/recipes-google/networking/gbmc-bridge.bb
index d5ee98f5f3..3245eb251d 100644
--- a/meta-google/recipes-google/networking/gbmc-bridge.bb
+++ b/meta-google/recipes-google/networking/gbmc-bridge.bb
@@ -28,6 +28,7 @@ SRC_URI += " \
file://gbmc-br-lib.sh \
file://gbmc-br-load-ip.service \
file://gbmc-start-dhcp.sh \
+ file://50-gbmc-br-cn-redirect.rules \
"
FILES:${PN}:append = " \
@@ -113,6 +114,7 @@ do_install() {
nftables_dir=${D}${sysconfdir}/nftables
install -d -m0755 "$nftables_dir"
install -m0644 ${WORKDIR}/50-gbmc-br.rules $nftables_dir/
+ install -m0644 ${WORKDIR}/50-gbmc-br-cn-redirect.rules $nftables_dir/
avahi_dir=${D}${sysconfdir}/avahi/services
install -d -m 0755 "$avahi_dir"