nicole: Add default network configs for Tatlin
This adds VLAN4004 configuration to the nicole firmware image.
The IPv6 address will be chosen depending on the BMC position.
During the firmware upgrade the stored previous version of
`/etc/systemd/network/00-bmc-eth0.network` may prevent to start new
VLAN4004 interface.
This commit also adds a service which should fix this issue on the
first boot time after upgrade by adding necessary option to the
interface configuration file if it is not present yet.
Tested: BMC now has additional `eth0.4004` interface use static IPv6
address and this address depend on BMC position.
Change-Id: I594a01e4c9657fcbbc41abede7f123d1c744183b
Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
diff --git a/meta-nicole/recipes-phosphor/network/vlan-4004/setup-vlan4004.service b/meta-nicole/recipes-phosphor/network/vlan-4004/setup-vlan4004.service
new file mode 100644
index 0000000..8714624
--- /dev/null
+++ b/meta-nicole/recipes-phosphor/network/vlan-4004/setup-vlan4004.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Setup VLAN 4004
+DefaultDependencies=no
+Conflicts=shutdown.target
+After=systemd-remount-fs.service
+Before=sysinit.target shutdown.target systemd-update-done.service
+ConditionNeedsUpdate=/etc
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/setup-vlan4004.sh
+
+[Install]
+WantedBy=sysinit.target