From 71588f6a1aacb996a8a6b4295a7f9a33717c6455 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 10 Dec 2015 11:51:47 +0900 Subject: rpki: show ROA with server information Signed-off-by: FUJITA Tomonori --- api/gobgp.pb.go | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'api/gobgp.pb.go') 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"` -- cgit v1.2.3