From dc52642d73471dc84cdbc8562c4a11e63e9aec6b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Mon, 24 Aug 2020 10:52:10 -0600 Subject: [PATCH] static executor: default to metric=1 if not specified this is needed to override learned routes if a gateway is configured --- executor-scripts/linux/static | 1 + 1 file changed, 1 insertion(+) diff --git a/executor-scripts/linux/static b/executor-scripts/linux/static index f03b61d..b1c9f8d 100755 --- a/executor-scripts/linux/static +++ b/executor-scripts/linux/static @@ -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"