From 29a9e6295f6781462fa6c924243729b10ffc061e Mon Sep 17 00:00:00 2001 From: Daniel Czerwonk <daniel@dan-nrw.de> Date: Wed, 30 May 2018 13:56:43 +0200 Subject: [PATCH] gofmt --- protocols/bgp/packet/bgp.go | 6 +++--- protocols/bgp/server/fsm.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/protocols/bgp/packet/bgp.go b/protocols/bgp/packet/bgp.go index 307c34ab..b32980db 100644 --- a/protocols/bgp/packet/bgp.go +++ b/protocols/bgp/packet/bgp.go @@ -63,9 +63,9 @@ const ( LocalPrefAttr = 5 AtomicAggrAttr = 6 AggregatorAttr = 7 - CommunitiesAttr = 8 - AS4PathAttr = 17 - AS4AggregatorAttr = 18 + CommunitiesAttr = 8 + AS4PathAttr = 17 + AS4AggregatorAttr = 18 LargeCommunityAttr = 32 // ORIGIN values diff --git a/protocols/bgp/server/fsm.go b/protocols/bgp/server/fsm.go index 1a20503e..1d83b2d3 100644 --- a/protocols/bgp/server/fsm.go +++ b/protocols/bgp/server/fsm.go @@ -792,7 +792,7 @@ func (fsm *FSM) established() int { case recvMsg := <-fsm.msgRecvCh: msg, err := packet.Decode(bytes.NewBuffer(recvMsg.msg)) if err != nil { - log.WithError(err).Errorf("Failed to decode BGP message %v\n", recvMsg.msg) + log.WithError(err).Errorf("Failed to decode BGP message %v\n", recvMsg.msg) switch bgperr := err.(type) { case packet.BGPError: sendNotification(fsm.con, bgperr.ErrorCode, bgperr.ErrorSubCode) -- GitLab