summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-07-08 14:07:46 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-07-13 15:41:08 +0900
commitc0d597433f6a3bcd7009fd60806d6b5906faa65d (patch)
tree192067ae010517cf218d074668d647fa02db211e /api
parent1bf1652c08dde3368e098c2f28260cb24f4aa0f8 (diff)
cli: add aspath prepend support
Diffstat (limited to 'api')
-rw-r--r--api/gobgp.pb.go18
-rw-r--r--api/gobgp.proto6
2 files changed, 24 insertions, 0 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go
index b0897927..cd935f84 100644
--- a/api/gobgp.pb.go
+++ b/api/gobgp.pb.go
@@ -45,6 +45,7 @@ It has these top-level messages:
CommunitySet
Conditions
CommunityAction
+ AsPrependAction
Actions
Statement
PolicyDefinition
@@ -1220,10 +1221,20 @@ func (m *CommunityAction) Reset() { *m = CommunityAction{} }
func (m *CommunityAction) String() string { return proto.CompactTextString(m) }
func (*CommunityAction) ProtoMessage() {}
+type AsPrependAction struct {
+ As string `protobuf:"bytes,1,opt,name=as" json:"as,omitempty"`
+ Repeatn uint32 `protobuf:"varint,2,opt,name=repeatn" json:"repeatn,omitempty"`
+}
+
+func (m *AsPrependAction) Reset() { *m = AsPrependAction{} }
+func (m *AsPrependAction) String() string { return proto.CompactTextString(m) }
+func (*AsPrependAction) ProtoMessage() {}
+
type Actions struct {
RouteAction string `protobuf:"bytes,1,opt,name=route_action" json:"route_action,omitempty"`
Community *CommunityAction `protobuf:"bytes,2,opt,name=community" json:"community,omitempty"`
Med string `protobuf:"bytes,3,opt,name=med" json:"med,omitempty"`
+ AsPrepend *AsPrependAction `protobuf:"bytes,4,opt,name=as_prepend" json:"as_prepend,omitempty"`
}
func (m *Actions) Reset() { *m = Actions{} }
@@ -1237,6 +1248,13 @@ func (m *Actions) GetCommunity() *CommunityAction {
return nil
}
+func (m *Actions) GetAsPrepend() *AsPrependAction {
+ if m != nil {
+ return m.AsPrepend
+ }
+ return nil
+}
+
type Statement struct {
StatementNeme string `protobuf:"bytes,1,opt,name=statement_neme" json:"statement_neme,omitempty"`
Conditions *Conditions `protobuf:"bytes,2,opt,name=conditions" json:"conditions,omitempty"`
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 677ee963..b0fa4714 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -448,10 +448,16 @@ message CommunityAction {
string options = 2;
}
+message AsPrependAction {
+ string as = 1;
+ uint32 repeatn = 2;
+}
+
message Actions {
string route_action = 1;
CommunityAction community = 2;
string med = 3;
+ AsPrependAction as_prepend = 4;
}
message Statement {