Added optical diagnostic metrics (#10)
This commit is contained in:
committed by
Steve Brunton
parent
d170b0a4d2
commit
39e54be98d
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -15,4 +15,5 @@ features:
|
||||
dhcp: true
|
||||
dhcpv6: true
|
||||
routes: true
|
||||
pools: true
|
||||
pools: true
|
||||
optics: true
|
||||
Reference in New Issue
Block a user