From 4f3f0468a1d32e3dc1a18d18601c4c9867e4f377 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 29 Aug 2015 13:17:46 +0900 Subject: 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 --- api/gobgp.pb.go | 2 ++ api/gobgp.proto | 2 ++ 2 files changed, 4 insertions(+) (limited to 'api') 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 { -- cgit v1.2.3