Cleanups and filtering.
Some checks failed
Rust / build (push) Has been cancelled

This commit is contained in:
Rayhaan Jaufeerally
2024-07-25 09:57:05 +00:00
parent 8546c37dac
commit 0cd3a120d0
13 changed files with 262 additions and 194 deletions

View File

@ -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; }

View File

@ -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