static executor: default to metric=1 if not specified

this is needed to override learned routes if a gateway is configured
This commit is contained in:
Ariadne Conill 2020-08-24 10:52:10 -06:00
parent 8fe264a120
commit dc52642d73

View file

@ -1,5 +1,6 @@
#!/bin/sh
[ -z "$IF_METRIC" ] && IF_METRIC="1"
[ -n "$IF_VRF_TABLE" ] && VRF_TABLE="table $IF_VRF_TABLE"
[ -n "$IF_METRIC" ] && METRIC="metric $IF_METRIC"