diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-10 11:51:47 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-10 11:51:47 +0900 |
commit | 71588f6a1aacb996a8a6b4295a7f9a33717c6455 (patch) | |
tree | 878485e8210766dde2e6fe096495441baa753dbc /api | |
parent | e92a04c9a880e81fdec116f837c5384cd79e0fcd (diff) |
rpki: show ROA with server information
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api')
-rw-r--r-- | api/gobgp.pb.go | 19 | ||||
-rw-r--r-- | api/gobgp.proto | 2 |
2 files changed, 16 insertions, 5 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go index a4f6069b..4b59a079 100644 --- a/api/gobgp.pb.go +++ b/api/gobgp.pb.go @@ -1450,7 +1450,8 @@ func (m *MrtMessage) String() string { return proto.CompactTextString(m) } func (*MrtMessage) ProtoMessage() {} type RPKIConf struct { - Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` + Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` + RemotePort uint32 `protobuf:"varint,2,opt,name=remote_port" json:"remote_port,omitempty"` } func (m *RPKIConf) Reset() { *m = RPKIConf{} } @@ -1492,16 +1493,24 @@ func (m *RPKI) GetState() *RPKIState { } type ROA struct { - As uint32 `protobuf:"varint,1,opt,name=as" json:"as,omitempty"` - Prefixlen uint32 `protobuf:"varint,2,opt,name=prefixlen" json:"prefixlen,omitempty"` - Maxlen uint32 `protobuf:"varint,3,opt,name=maxlen" json:"maxlen,omitempty"` - Prefix string `protobuf:"bytes,4,opt,name=prefix" json:"prefix,omitempty"` + As uint32 `protobuf:"varint,1,opt,name=as" json:"as,omitempty"` + Prefixlen uint32 `protobuf:"varint,2,opt,name=prefixlen" json:"prefixlen,omitempty"` + Maxlen uint32 `protobuf:"varint,3,opt,name=maxlen" json:"maxlen,omitempty"` + Prefix string `protobuf:"bytes,4,opt,name=prefix" json:"prefix,omitempty"` + Conf *RPKIConf `protobuf:"bytes,5,opt,name=conf" json:"conf,omitempty"` } func (m *ROA) Reset() { *m = ROA{} } func (m *ROA) String() string { return proto.CompactTextString(m) } func (*ROA) ProtoMessage() {} +func (m *ROA) GetConf() *RPKIConf { + if m != nil { + return m.Conf + } + return nil +} + type Vrf struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Rd []byte `protobuf:"bytes,2,opt,name=rd,proto3" json:"rd,omitempty"` diff --git a/api/gobgp.proto b/api/gobgp.proto index 2d5cde94..b052aaa6 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -530,6 +530,7 @@ message MrtMessage { message RPKIConf { string address = 1; + uint32 remote_port = 2; } message RPKIState { @@ -549,6 +550,7 @@ message ROA { uint32 prefixlen = 2; uint32 maxlen = 3; string prefix = 4; + RPKIConf conf = 5; } message Vrf { |