From 371b23d0559022f1980ab269846b2773939a9c28 Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Tue, 27 Aug 2019 11:36:46 +0100 Subject: [PATCH] Introduce DefaultLink; dont hardcode name of the link --- network/default.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/network/default.go b/network/default.go index be49f9f8..615d567e 100644 --- a/network/default.go +++ b/network/default.go @@ -20,6 +20,8 @@ import ( var ( // ControlChannel is the name of the tunnel channel for passing contron message ControlChannel = "control" + // DefaultLink is default network link + DefaultLink = "network" ) // network implements Network interface @@ -229,7 +231,7 @@ func (n *network) advertise(client transport.Client, advertChan <-chan *router.A Address: event.Route.Address, Gateway: n.options.Address, Network: event.Route.Network, - Link: "network", + Link: DefaultLink, Metric: int64(event.Route.Metric), } e := &pb.Event{