summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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,