summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-11-11 22:54:21 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-12-21 19:28:25 +0900
commit406efffa74eadb44826e4b464dc2fbabdddf72c4 (patch)
tree78ba4c1b69ed3272e76175c70b26b2839b93130d /api
parente71fb3a3ae6129573f50848f7af8e83eb8a4d7e2 (diff)
*: add global listen port configuration
if port < 0, gobgpd won't listen on tcp:179 Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api')
-rw-r--r--api/gobgp.pb.go5
-rw-r--r--api/gobgp.proto1
2 files changed, 4 insertions, 2 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go
index 30b925aa..17da4c6b 100644
--- a/api/gobgp.pb.go
+++ b/api/gobgp.pb.go
@@ -1178,8 +1178,9 @@ func (m *Vrf) String() string { return proto.CompactTextString(m) }
func (*Vrf) ProtoMessage() {}
type Global struct {
- As uint32 `protobuf:"varint,1,opt,name=as" json:"as,omitempty"`
- RouterId string `protobuf:"bytes,2,opt,name=router_id" json:"router_id,omitempty"`
+ As uint32 `protobuf:"varint,1,opt,name=as" json:"as,omitempty"`
+ RouterId string `protobuf:"bytes,2,opt,name=router_id" json:"router_id,omitempty"`
+ ListenPort int32 `protobuf:"varint,3,opt,name=listen_port" json:"listen_port,omitempty"`
}
func (m *Global) Reset() { *m = Global{} }
diff --git a/api/gobgp.proto b/api/gobgp.proto
index df52a93e..ca3b3020 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -467,4 +467,5 @@ message Vrf {
message Global {
uint32 as = 1;
string router_id = 2;
+ int32 listen_port = 3;
}