netmap |
Subversion Repositories: |
Rev 119 | Rev 120 | |
---|---|---|
Line 30... | Line 30... | |
mv $DATABASE.ospfA $DATABASE.ospf |
mv $DATABASE.ospfA $DATABASE.ospf | |
fi |
fi | |
# jgw is the Full/DR one |
# jgw is the Full/DR one | |
grep -E '92;jab715;jgw|92;jabu;jgw|92;hasit;jgw' $DATABASE.ospf >/dev/null 2>&1 |
grep -E '92;jab715;jgw|92;jabu;jgw|92;hasit;jgw' $DATABASE.ospf >/dev/null 2>&1 | |
if [ $? -eq 0 ]; then |
if [ $? -eq 0 ]; then | |
cat $DATABASE.ospf | grep -Ev '82;jabu;sitelka;|82;jabu;ogw;|82;hasit;sitelka|82;ogw;hasit;|82;jab715;sitelka;|82;jab715;ogw;' > $DATABASE.ospfA |
cat $DATABASE.ospf | grep -Ev '82;jabu;sitelka;|82;jabu;ogw;|82;hasit;sitelka|82;hasit;ogw;|82;jab715;sitelka;|82;jab715;ogw;|82;hasit;jab715;' > $DATABASE.ospfA | |
mv $DATABASE.ospfA $DATABASE.ospf |
mv $DATABASE.ospfA $DATABASE.ospf | |
fi |
fi | |
# ogw is the Full/DR one |
# ogw is the Full/DR one | |
grep -E '92;jab715;ogw|92;jabu;ogw|92;ogw;hasit' $DATABASE.ospf >/dev/null 2>&1 |
grep -E '92;jab715;ogw|92;jabu;ogw|92;ogw;hasit' $DATABASE.ospf >/dev/null 2>&1 | |
if [ $? -eq 0 ]; then |
if [ $? -eq 0 ]; then |