X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-stx%2Frecipes-core%2Fstx-metal%2Ffiles%2F0013-kickstarts-add-vlan-setting-for-debain-style-network.patch;fp=meta-stx%2Frecipes-core%2Fstx-metal%2Ffiles%2F0013-kickstarts-add-vlan-setting-for-debain-style-network.patch;h=3f5215b8631c838e872ee1d317751243d41755a9;hb=37be71a5016107a2952a0f53a1d3e4d39bf9d2ef;hp=0000000000000000000000000000000000000000;hpb=32d47159f53fa2071bf9da247b9a953f35bd3b43;p=pti%2Frtp.git diff --git a/meta-stx/recipes-core/stx-metal/files/0013-kickstarts-add-vlan-setting-for-debain-style-network.patch b/meta-stx/recipes-core/stx-metal/files/0013-kickstarts-add-vlan-setting-for-debain-style-network.patch new file mode 100644 index 0000000..3f5215b --- /dev/null +++ b/meta-stx/recipes-core/stx-metal/files/0013-kickstarts-add-vlan-setting-for-debain-style-network.patch @@ -0,0 +1,38 @@ +From 97228a9287bec2049767d175f97226d90b4be943 Mon Sep 17 00:00:00 2001 +From: Jackie Huang +Date: Sun, 22 Nov 2020 22:00:58 +0800 +Subject: [PATCH] kickstarts: add vlan setting for debain style networking + +Upstream-Status: Inappropriate [poky-stx specific] + +Signed-off-by: Jackie Huang +--- + bsp-files/kickstarts/post_net_common.cfg | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git a/bsp-files/kickstarts/post_net_common.cfg b/bsp-files/kickstarts/post_net_common.cfg +index 46cdeeb..c000348 100755 +--- a/bsp-files/kickstarts/post_net_common.cfg ++++ b/bsp-files/kickstarts/post_net_common.cfg +@@ -135,6 +135,18 @@ VLAN=yes + LINKDELAY=20 + EOF + ++ # For Debian style networking settings ++ cat << EOF >> /etc/network/interfaces ++auto $mgmt_dev vlan$mgmt_vlan ++ ++iface $mgmt_dev inet dhcp ++ ++iface vlan$mgmt_vlan inet dhcp ++ vlan-raw-device $mgmt_dev ++ pre-up /sbin/modprobe -q 8021q ++EOF ++ ++ + # Reject DHCPOFFER from DHCP server that doesn't send + # wrs-install-uuid option + echo "require wrs-install-uuid;" >>/etc/dhcp/dhclient.conf +-- +2.7.4 +