blob: 5e6e79cc722e19988522c27abab0e5a227f30fc4 (
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
vyatta-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;
vyatta-vtysh -c "configure terminal" \
-c "router ospf" \
-c "default-information originate $PARM";
fi;
|