From 8821d5c33b454a1b6ad5f8b4851669fb32e9f2f8 Mon Sep 17 00:00:00 2001 From: Wataru Ishida Date: Sun, 25 Sep 2016 07:27:09 +0000 Subject: cli: add description to PeerConf struct Signed-off-by: Wataru Ishida --- gobgp/cmd/common.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gobgp/cmd/common.go b/gobgp/cmd/common.go index 09965803..5374f3c5 100644 --- a/gobgp/cmd/common.go +++ b/gobgp/cmd/common.go @@ -172,6 +172,7 @@ type PeerConf struct { PrefixLimits []*gobgpapi.PrefixLimit `json:"prefix_limits,omitempty"` LocalIp string `json:"local_ip,omitempty"` Interface string `json:"interface,omitempty"` + Description string `json:"description,omitempty"` } type Peer struct { @@ -205,6 +206,7 @@ func ApiStruct2Peer(p *gobgpapi.Peer) *Peer { PrefixLimits: p.Conf.PrefixLimits, LocalIp: localIp.String(), Interface: p.Conf.NeighborInterface, + Description: p.Conf.Description, } return &Peer{ Conf: conf, -- cgit v1.2.3