summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.pb.go
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-06-29 18:01:58 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-07-01 14:26:35 +0900
commitae8862599082f6bd70423df255db6f4769cad5a1 (patch)
tree36d326500782cc15b68682a37ca39d1486c4534c /api/gobgp.pb.go
parent046d96de655f2c75a43038ab75b78df93d031450 (diff)
cli: support distribute policy
Diffstat (limited to 'api/gobgp.pb.go')
-rw-r--r--api/gobgp.pb.go17
1 files changed, 13 insertions, 4 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go
index cc2f5a4a..e0cde493 100644
--- a/api/gobgp.pb.go
+++ b/api/gobgp.pb.go
@@ -1196,10 +1196,12 @@ func (m *PolicyDefinition) GetStatementList() []*Statement {
}
type ApplyPolicy struct {
- ImportPolicies []*PolicyDefinition `protobuf:"bytes,1,rep,name=import_policies" json:"import_policies,omitempty"`
- DefaultImportPolicy string `protobuf:"bytes,2,opt,name=default_import_policy" json:"default_import_policy,omitempty"`
- ExportPolicies []*PolicyDefinition `protobuf:"bytes,3,rep,name=export_policies" json:"export_policies,omitempty"`
- DefaultExportPolicy string `protobuf:"bytes,4,opt,name=default_export_policy" json:"default_export_policy,omitempty"`
+ ImportPolicies []*PolicyDefinition `protobuf:"bytes,1,rep,name=import_policies" json:"import_policies,omitempty"`
+ DefaultImportPolicy string `protobuf:"bytes,2,opt,name=default_import_policy" json:"default_import_policy,omitempty"`
+ ExportPolicies []*PolicyDefinition `protobuf:"bytes,3,rep,name=export_policies" json:"export_policies,omitempty"`
+ DefaultExportPolicy string `protobuf:"bytes,4,opt,name=default_export_policy" json:"default_export_policy,omitempty"`
+ DistributePolicies []*PolicyDefinition `protobuf:"bytes,5,rep,name=distribute_policies" json:"distribute_policies,omitempty"`
+ DefaultDistributePolicy string `protobuf:"bytes,6,opt,name=default_distribute_policy" json:"default_distribute_policy,omitempty"`
}
func (m *ApplyPolicy) Reset() { *m = ApplyPolicy{} }
@@ -1220,6 +1222,13 @@ func (m *ApplyPolicy) GetExportPolicies() []*PolicyDefinition {
return nil
}
+func (m *ApplyPolicy) GetDistributePolicies() []*PolicyDefinition {
+ if m != nil {
+ return m.DistributePolicies
+ }
+ return nil
+}
+
func init() {
proto.RegisterEnum("api.Resource", Resource_name, Resource_value)
proto.RegisterEnum("api.Operation", Operation_name, Operation_value)