blob: c1646b9dda6239ce5321c74c6c37d12d10e95756 (
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
28
29
30
|
help: Set to distribute a default route
delete: touch /tmp/ospf-default-info.$PPID
end: if [ -f "/tmp/ospf-default-info.$PPID" ]; then
vtysh -c "configure terminal" \
-c "router ospf" \
-c "no default-information originate";
else
# uncomment and remove script pending bug 2525
#
# if [ -n "$VAR(./always/)" ]; then
# PARM="always";
# fi;
${vyatta_sbindir}/vyatta-check-typeless-node.pl \
"protocols ospf default-information originate always";
if [ $? -eq 0 ] ; then
PARM="always";
fi;
if [ -n "$VAR(./metric/@)" ]; then
PARM="$PARM metric $VAR(./metric/@)";
fi;
if [ -n "$VAR(./metric-type/@)" ]; then
PARM="$PARM metric-type $VAR(./metric-type/@)";
fi;
if [ -n "$VAR(./route-map/@)" ]; then
PARM="$PARM route-map $VAR(./route-map/@)";
fi;
vtysh -c "configure terminal" \
-c "router ospf" \
-c "default-information originate $PARM";
fi;
|