Skip to content

Commit

Permalink
treate EXIT as DISABLE for metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
wavezhang committed Jul 31, 2019
1 parent 5e5f94b commit 1527df5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/exabgp/application/healthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@ def exabgp(target):
setup_ips(options.ips, options.label, options.sudo)

logger.info("send announces for %s state to ExaBGP", target)
metric = vars(options).get("{0}_metric".format(str(target).lower()), 0)
default_metric = vars(options).get("{0}_metric".format(str(states.DISABLED).lower()))
metric = vars(options).get("{0}_metric".format(str(target).lower()), default_metric)
for ip in options.ips:
if options.withdraw_on_down:
command = "announce" if target is states.UP else "withdraw"
Expand Down

0 comments on commit 1527df5

Please sign in to comment.