summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-09-25 07:27:09 +0000
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-09-25 07:28:18 +0000
commit8821d5c33b454a1b6ad5f8b4851669fb32e9f2f8 (patch)
treece88f8e447b365153e966e6c977d89b4f1b4e10a
parent0a6e9eec9ff4a2aa85a87d97f94c58602db999b6 (diff)
cli: add description to PeerConf struct
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
-rw-r--r--gobgp/cmd/common.go2
1 files changed, 2 insertions, 0 deletions
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,