summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/gobgp.pb.go24
-rw-r--r--api/gobgp.proto8
2 files changed, 28 insertions, 4 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go
index 2d8767a8..bb93a7c4 100644
--- a/api/gobgp.pb.go
+++ b/api/gobgp.pb.go
@@ -35,6 +35,7 @@ It has these top-level messages:
PrefixSet
Neighbor
NeighborSet
+ AsPathLength
Conditions
Actions
Statement
@@ -975,10 +976,20 @@ func (m *NeighborSet) GetNeighborList() []*Neighbor {
return nil
}
+type AsPathLength struct {
+ Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
+ Operator string `protobuf:"bytes,2,opt,name=operator" json:"operator,omitempty"`
+}
+
+func (m *AsPathLength) Reset() { *m = AsPathLength{} }
+func (m *AsPathLength) String() string { return proto.CompactTextString(m) }
+func (*AsPathLength) ProtoMessage() {}
+
type Conditions struct {
- MatchPrefixSet *PrefixSet `protobuf:"bytes,1,opt,name=match_prefix_set" json:"match_prefix_set,omitempty"`
- MatchNeighborSet *NeighborSet `protobuf:"bytes,2,opt,name=match_neighbor_set" json:"match_neighbor_set,omitempty"`
- MatchSetOptions int64 `protobuf:"varint,3,opt,name=match_set_options" json:"match_set_options,omitempty"`
+ MatchPrefixSet *PrefixSet `protobuf:"bytes,1,opt,name=match_prefix_set" json:"match_prefix_set,omitempty"`
+ MatchNeighborSet *NeighborSet `protobuf:"bytes,2,opt,name=match_neighbor_set" json:"match_neighbor_set,omitempty"`
+ MatchAsPathLength *AsPathLength `protobuf:"bytes,3,opt,name=match_as_path_length" json:"match_as_path_length,omitempty"`
+ MatchSetOptions int64 `protobuf:"varint,4,opt,name=match_set_options" json:"match_set_options,omitempty"`
}
func (m *Conditions) Reset() { *m = Conditions{} }
@@ -999,6 +1010,13 @@ func (m *Conditions) GetMatchNeighborSet() *NeighborSet {
return nil
}
+func (m *Conditions) GetMatchAsPathLength() *AsPathLength {
+ if m != nil {
+ return m.MatchAsPathLength
+ }
+ return nil
+}
+
type Actions struct {
AcceptRoute bool `protobuf:"varint,1,opt,name=accept_route" json:"accept_route,omitempty"`
RejectRoute bool `protobuf:"varint,2,opt,name=reject_route" json:"reject_route,omitempty"`
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 362c619a..4feca48d 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -366,10 +366,16 @@ message NeighborSet {
repeated Neighbor neighbor_list = 2;
}
+message AsPathLength {
+ string value = 1;
+ string operator = 2;
+}
+
message Conditions {
PrefixSet match_prefix_set = 1;
NeighborSet match_neighbor_set = 2;
- int64 match_set_options = 3;
+ AsPathLength match_as_path_length = 3;
+ int64 match_set_options = 4;
}
message Actions {