summaryrefslogtreecommitdiff
path: root/templates/interfaces/loopback/node.def
blob: b5235a06c8c8174f95e052786a67da6f7c2f0a3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
tag:
type: txt
help: Set loopback interface
allowed: echo "lo"
syntax:expression: exec "\
	if [ !-d /sys/class/net/$VAR(@) ]; then \
		echo \"loopback interface $VAR(@) does not exist\"; \
		exit 1; \
	elif [ $(cat /sys/class/net/$VAR(@)/type) -ne 772 ]; then \
		echo \"interface $VAR(@) is not a loopback interface\"; \
		exit 1; \
	fi"

update: sudo ip link set $VAR(@) up