removed device protocol since it does not generate routes

This commit is contained in:
Daniel Czerwonk 2017-12-12 16:00:28 +01:00
parent 5aa2e04ce7
commit d46dc7e1ce
5 changed files with 0 additions and 11 deletions

View File

@ -25,7 +25,6 @@ var (
enableOspf = flag.Bool("proto.ospf", true, "Enables metrics for protocol OSPF")
enableKernel = flag.Bool("proto.kernel", true, "Enables metrics for protocol Kernel")
enableStatic = flag.Bool("proto.static", true, "Enables metrics for protocol Static")
enableDevice = flag.Bool("proto.device", true, "Enables metrics for protocol Device")
enableDirect = flag.Bool("proto.direct", true, "Enables metrics for protocol Direct")
// pre bird 2.0
bird6Socket = flag.String("bird.socket6", "/var/run/bird6.ctl", "Socket to communicate with bird6 routing daemon (not compatible with -bird.v2)")
@ -128,9 +127,6 @@ func enabledProtocols() int {
if *enableStatic {
res |= protocol.Static
}
if *enableDevice {
res |= protocol.Device
}
if *enableDirect {
res |= protocol.Direct
}

View File

@ -30,7 +30,6 @@ func exportersForLegacy() map[int][]metrics.MetricExporter {
return map[int][]metrics.MetricExporter{
protocol.BGP: []metrics.MetricExporter{metrics.NewLegacyMetricExporter("bgp4_session", "bgp6_session", l)},
protocol.Device: []metrics.MetricExporter{metrics.NewLegacyMetricExporter("device4", "device6", l)},
protocol.Direct: []metrics.MetricExporter{metrics.NewLegacyMetricExporter("direct4", "direct6", l)},
protocol.Kernel: []metrics.MetricExporter{metrics.NewLegacyMetricExporter("kernel4", "kernel6", l)},
protocol.OSPF: []metrics.MetricExporter{metrics.NewLegacyMetricExporter("ospf", "ospfv3", l), ospf.NewExporter("")},
@ -44,7 +43,6 @@ func exportersForDefault() map[int][]metrics.MetricExporter {
return map[int][]metrics.MetricExporter{
protocol.BGP: []metrics.MetricExporter{e},
protocol.Device: []metrics.MetricExporter{e},
protocol.Direct: []metrics.MetricExporter{e},
protocol.Kernel: []metrics.MetricExporter{e},
protocol.OSPF: []metrics.MetricExporter{e, ospf.NewExporter("bird_")},

View File

@ -28,8 +28,6 @@ func protoString(p *protocol.Protocol) string {
return "Static"
case protocol.Kernel:
return "Kernel"
case protocol.Device:
return "Device"
case protocol.Direct:
return "Direct"
}

View File

@ -102,8 +102,6 @@ func parseProto(val string) int {
return protocol.OSPF
case "Direct":
return protocol.Direct
case "Device":
return protocol.Device
case "Kernel":
return protocol.Kernel
case "Static":

View File

@ -7,7 +7,6 @@ const (
Kernel = 4
Static = 8
Direct = 16
Device = 32
)
type Protocol struct {