diff options
author | Alexander Filippov <a.filippov@yadro.com> | 2020-09-21 15:25:40 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-09-23 01:24:43 +0300 |
commit | f3ee50caa5a183cb976d595fcc5cb6ca13dd08b6 (patch) | |
tree | f156f112f67424bf7bcb9ce2701dca2ac0807468 /meta-yadro/meta-nicole/recipes-core | |
parent | 441965ce6a516947592eeb587317937a47ab89d2 (diff) | |
download | openbmc-f3ee50caa5a183cb976d595fcc5cb6ca13dd08b6.tar.xz |
nicole: Add predefined network settings
This brings the default network settings for Tatlin as a part of
`systemd-conf` package.
These settings contain a predefined IPv4 address for eth0 interface,
keep the possibility of getting an additional IP address from DHCP.
VALN4004 with predefined IPv6 address is also kept.
(From meta-yadro rev: 56e7efa11a0b281f39d160cd99c84b7a95632205)
Change-Id: Ibb025a1ae519f0843bfcb8ec71e009e2bc97141f
End-User-Impact: - BMC now has predefined IPv4 address on the eth0.
- VLAN4004 also present and has predefined IPv6 address
- BMC is able to get a dynamic IP address on eth0.
Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-yadro/meta-nicole/recipes-core')
6 files changed, 70 insertions, 0 deletions
diff --git a/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.0.network b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.0.network new file mode 100644 index 000000000..64a1436cb --- /dev/null +++ b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.0.network @@ -0,0 +1,11 @@ +[Match] +Name=eth0 +KernelCommandLine=bmcposition=0 +[Network] +VLAN=eth0.4004 +DHCP=true +LinkLocalAddressing=yes +IPv6AcceptRA=false +Address=10.9.0.1/24 +[DHCP] +ClientIdentifier=mac diff --git a/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.1.network b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.1.network new file mode 100644 index 000000000..aaaa520dd --- /dev/null +++ b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.1.network @@ -0,0 +1,11 @@ +[Match] +Name=eth0 +KernelCommandLine=bmcposition=1 +[Network] +VLAN=eth0.4004 +DHCP=true +LinkLocalAddressing=yes +IPv6AcceptRA=false +Address=10.9.0.2/24 +[DHCP] +ClientIdentifier=mac diff --git a/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.4004.0.network b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.4004.0.network new file mode 100644 index 000000000..534cbe9b1 --- /dev/null +++ b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.4004.0.network @@ -0,0 +1,8 @@ +[Match] +Name=eth0.4004 +KernelCommandLine=bmcposition=0 +[Network] +LinkLocalAddressing=yes +IPv6AcceptRA=true +DHCP=no +Address=fd59:4144:524f:5441:544c:494e:3:1/122 diff --git a/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.4004.1.network b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.4004.1.network new file mode 100644 index 000000000..83a48eee7 --- /dev/null +++ b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/00-bmc-eth0.4004.1.network @@ -0,0 +1,8 @@ +[Match] +Name=eth0.4004 +KernelCommandLine=bmcposition=1 +[Network] +LinkLocalAddressing=yes +IPv6AcceptRA=true +DHCP=no +Address=fd59:4144:524f:5441:544c:494e:3:2/122 diff --git a/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/eth0.4004.netdev b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/eth0.4004.netdev new file mode 100644 index 000000000..e315f5e8a --- /dev/null +++ b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf/eth0.4004.netdev @@ -0,0 +1,5 @@ +[NetDev] +Name=eth0.4004 +Kind=vlan +[VLAN] +Id=4004 diff --git a/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf_%.bbappend b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf_%.bbappend new file mode 100644 index 000000000..48d4a4a4c --- /dev/null +++ b/meta-yadro/meta-nicole/recipes-core/systemd/systemd-conf_%.bbappend @@ -0,0 +1,27 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI_append = " \ + file://00-bmc-eth0.4004.0.network \ + file://00-bmc-eth0.4004.1.network \ + file://00-bmc-eth0.0.network \ + file://00-bmc-eth0.1.network \ + file://eth0.4004.netdev \ +" + +do_install_append() { + install -m 0644 \ + ${WORKDIR}/00-bmc-eth0.4004.0.network \ + ${WORKDIR}/00-bmc-eth0.4004.1.network \ + ${WORKDIR}/00-bmc-eth0.0.network \ + ${WORKDIR}/00-bmc-eth0.1.network \ + ${WORKDIR}/eth0.4004.netdev \ + -D -t ${D}${sysconfdir}/systemd/network +} + +FILES_${PN}_append = " \ + ${sysconfdir}/systemd/network/00-bmc-eth0.4004.0.network \ + ${sysconfdir}/systemd/network/00-bmc-eth0.4004.1.network \ + ${sysconfdir}/systemd/network/00-bmc-eth0.0.network \ + ${sysconfdir}/systemd/network/00-bmc-eth0.1.network \ + ${sysconfdir}/systemd/network/eth0.4004.netdev \ +" |