Skip to content

Instantly share code, notes, and snippets.

Avatar

Eric Qian freeyoung

  • Berlin, Germany
View GitHub Profile
@freeyoung
freeyoung / tmp
Created Jan 13, 2016 — forked from CMGS/tmp
View tmp
# Generated by confd
include "bird_aggr.cfg";
include "bird_ipam.cfg";
router id {{getenv "IP"}};
{{define "LOGGING"}}
{{$node_logging_key := printf "/host/%s/loglevel" (getenv "HOSTNAME")}}{{if exists $node_logging_key}}{{$logging := getv $node_logging_key}}
{{if eq $logging "debug"}} debug all;{{else if ne $logging "none"}} debug { states };{{end}}
{{else if exists "/global/loglevel"}}{{$logging := getv "/global/loglevel"}}