Create ipsec collector (#51)

This commit is contained in:
Gábor Fási
2019-10-25 03:11:05 +02:00
committed by Steve Brunton
parent 0250e6c58e
commit c757fc7216
6 changed files with 126 additions and 1 deletions
+1
View File
@@ -20,6 +20,7 @@ type Config struct {
WlanSTA bool `yaml:"wlansta,omitempty"`
WlanIF bool `yaml:"wlanif,omitempty"`
Monitor bool `yaml:"monitor,omitempty"`
Ipsec bool `yaml:"ipsec,omitempty"`
} `yaml:"features,omitempty"`
}
+2 -1
View File
@@ -17,4 +17,5 @@ features:
pools: true
optics: true
wlansta: true
wlanif: true
wlanif: true
ipsec: true
+1
View File
@@ -27,6 +27,7 @@ func TestShouldParse(t *testing.T) {
assertFeature("Optics", c.Features.Optics, t)
assertFeature("WlanSTA", c.Features.WlanSTA, t)
assertFeature("WlanIF", c.Features.WlanIF, t)
assertFeature("Ipsec", c.Features.Ipsec, t)
}
func loadTestFile(t *testing.T) []byte {