summaryrefslogtreecommitdiffstats
path: root/recipes-test/demo-network-config/secondary-network-config.bb
blob: 6473e05f8b739c5f733437842296f20b8867fcd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
DESCRIPTION = "Sample network configuration for an Uptane Secondary"
LICENSE = "CLOSED"

inherit allarch

# TODO: It configures the 'user' interface in NAT mode and provides an access to public Inet via it
# which is not desired for Secondary. It cannot be just removed since we get SSH access to Secondary
# VM via this interface. So, the task is to configure the interface in such way that it does provide access
# via SSH from a host machine and forbids an access to Inet
SRC_URI = "\
    file://27-dhcp-client-external.network \
    "

FILES_${PN} = "/usr/lib/systemd/network"

PR = "1"

do_install() {
    install -d ${D}/usr/lib/systemd/network
    install -m 0644 ${WORKDIR}/27-dhcp-client-external.network ${D}/usr/lib/systemd/network/
}

SECONDARY_NETWORK_IP_ADDR ?= "10.0.3.2"

require static-network-config.inc

# vim:set ts=4 sw=4 sts=4 expandtab: