Skip to content

Commit

Permalink
add missing defaults for l2vpn (#254)
Browse files Browse the repository at this point in the history
Co-authored-by: jgastinger <jgastinger@anexia-it.com>
  • Loading branch information
Gaste8 and jgastinger authored Aug 6, 2024
1 parent a524638 commit 7324b77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ var (
ospfEnabled = flag.Bool("ospf.enabled", true, "Scrape OSPFv3 metrics")
isisEnabled = flag.Bool("isis.enabled", false, "Scrape ISIS metrics")
l2circuitEnabled = flag.Bool("l2circuit.enabled", false, "Scrape l2circuit metrics")
l2vpnEnabled = flag.Bool("l2vpn.enabled", false, "Scrape l2vpn metrics")
natEnabled = flag.Bool("nat.enabled", false, "Scrape NAT metrics")
nat2Enabled = flag.Bool("nat2.enabled", false, "Scrape NAT2 metrics")
ldpEnabled = flag.Bool("ldp.enabled", true, "Scrape ldp metrics")
Expand Down Expand Up @@ -231,6 +232,7 @@ func loadConfigFromFlags() *config.Config {
f.OSPF = *ospfEnabled
f.LDP = *ldpEnabled
f.L2Circuit = *l2circuitEnabled
f.L2Vpn = *l2vpnEnabled
f.Routes = *routesEnabled
f.RoutingEngine = *routingEngineEnabled
f.Accounting = *accountingEnabled
Expand Down

0 comments on commit 7324b77

Please sign in to comment.