summaryrefslogtreecommitdiffstats
path: root/src/lib/connections/dummy
blob: 8726d86c39c0e5f054d5a2ba9a7a065749b31bff (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
# Contributed by: João Valverde <joao.valverde@ist.utl.pt>

. "$SUBR_DIR/ip"

# Make sure BindsToInterfaces is set
BindsToInterfaces=("${BindsToInterfaces[@]}")

dummy_up() {
    if is_interface "$Interface"; then
        report_error "Interface '$Interface' already exists"
        return 1
    fi

    interface_add dummy "$Interface"
    bring_interface_up "$Interface"
    ip_set
}

dummy_down() {
    ip_unset
    interface_delete "$Interface"
}


# vim: ft=sh ts=4 et sw=4: