Added optical diagnostic metrics (#10)

This commit is contained in:
Daniel Czerwonk
2018-05-07 20:31:19 +02:00
committed by Steve Brunton
parent d170b0a4d2
commit 39e54be98d
9 changed files with 181 additions and 14 deletions

View File

@@ -16,6 +16,7 @@ type Config struct {
DHCPv6 bool `yaml:"dhcpv6,omitempty"`
Routes bool `yaml:"routes,omitempty"`
Pools bool `yaml:"pools,omitempty"`
Optics bool `yaml:"optics,omitempty"`
} `yaml:"features,omitempty"`
}

View File

@@ -24,6 +24,7 @@ func TestShouldParse(t *testing.T) {
assertFeature("DHCPv6", c.Features.DHCPv6, t)
assertFeature("Pools", c.Features.Pools, t)
assertFeature("Routes", c.Features.Routes, t)
assertFeature("Optics", c.Features.Optics, t)
}
func loadTestFile(t *testing.T) []byte {

View File

@@ -15,4 +15,5 @@ features:
dhcp: true
dhcpv6: true
routes: true
pools: true
pools: true
optics: true