This commit is contained in:
@ -32,7 +32,7 @@ message Prefix {
|
||||
// prefix.
|
||||
message Path {
|
||||
bytes nexthop = 1;
|
||||
string peer_name = 2;
|
||||
bytes peer_id = 2;
|
||||
uint32 local_pref = 3;
|
||||
uint32 med = 4;
|
||||
repeated uint32 as_path = 5;
|
||||
@ -67,12 +67,12 @@ message PeerStatusRequest {}
|
||||
|
||||
message PeerStatus {
|
||||
string peer_name = 1;
|
||||
string state = 2;
|
||||
// The following fields are only populated when the session is established.
|
||||
optional uint64 session_established_time = 3;
|
||||
optional uint64 last_messaage_time = 4;
|
||||
optional uint64 route_updates_in = 5;
|
||||
optional uint64 route_updates_out = 6;
|
||||
bytes peer_id = 2;
|
||||
string state = 3;
|
||||
optional uint64 session_established_time = 4;
|
||||
optional uint64 last_messaage_time = 5;
|
||||
optional uint64 route_updates_in = 6;
|
||||
optional uint64 route_updates_out = 7;
|
||||
}
|
||||
|
||||
message PeerStatusResponse { repeated PeerStatus peer_status = 1; }
|
||||
|
||||
@ -120,9 +120,9 @@ pub async fn run_connector_v4<S: SouthboundInterface>(
|
||||
let nexthop_bytes: [u8; 4] = path.nexthop.clone().try_into().unwrap();
|
||||
let nexthop: Ipv4Addr = nexthop_bytes.into();
|
||||
trace!(
|
||||
"nexthop: {}, peer: {}, local_pref: {}, med: {}, as_path: {:?}",
|
||||
"nexthop: {}, peer_id: {:x?}, local_pref: {}, med: {}, as_path: {:?}",
|
||||
nexthop,
|
||||
path.peer_name,
|
||||
path.peer_id,
|
||||
path.local_pref,
|
||||
path.med,
|
||||
path.as_path
|
||||
@ -190,9 +190,9 @@ pub async fn run_connector_v6<S: SouthboundInterface>(
|
||||
let nexthop_bytes: [u8; 16] = path.nexthop.clone().try_into().unwrap();
|
||||
let nexthop: Ipv6Addr = nexthop_bytes.into();
|
||||
trace!(
|
||||
"nexthop: {}, peer: {}, local_pref: {}, med: {}, as_path: {:?}",
|
||||
"nexthop: {}, peer_id: {:x?}, local_pref: {}, med: {}, as_path: {:?}",
|
||||
nexthop,
|
||||
path.peer_name,
|
||||
path.peer_id,
|
||||
path.local_pref,
|
||||
path.med,
|
||||
path.as_path
|
||||
|
||||
Reference in New Issue
Block a user