summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-29 13:17:46 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-29 13:17:46 +0900
commit4f3f0468a1d32e3dc1a18d18601c4c9867e4f377 (patch)
tree733ef3e3f636c0f2415795bb94c8988a8a922491 /api
parent56bfc93a38d9646b488bbc105a0c14f8166cfc19 (diff)
mrt: inject properly uses AS number and RouterID
Currently, mrt inject wrongly use gobgpd's AS number and RouterID. Instead use these in the dump file. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api')
-rw-r--r--api/gobgp.pb.go2
-rw-r--r--api/gobgp.proto2
2 files changed, 4 insertions, 0 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go
index 876d5218..e76bc45c 100644
--- a/api/gobgp.pb.go
+++ b/api/gobgp.pb.go
@@ -209,6 +209,8 @@ type ModPathArguments struct {
Resource Resource `protobuf:"varint,1,opt,name=resource,enum=api.Resource" json:"resource,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Path *Path `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
+ Asn uint32 `protobuf:"varint,4,opt,name=asn" json:"asn,omitempty"`
+ Id string `protobuf:"bytes,5,opt,name=id" json:"id,omitempty"`
}
func (m *ModPathArguments) Reset() { *m = ModPathArguments{} }
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 024f699a..80b88c02 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -63,6 +63,8 @@ message ModPathArguments {
Resource resource = 1;
string name = 2;
Path path = 3;
+ uint32 asn = 4;
+ string id = 5;
}
message PolicyArguments {