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

. "$SUBR_DIR/ip"

declare -ag 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: