Add cross connection test and cleanup rpc server a bit
This commit is contained in:
@ -68,10 +68,11 @@ message PeerStatusRequest {}
|
||||
message PeerStatus {
|
||||
string peer_name = 1;
|
||||
string state = 2;
|
||||
uint64 session_established_time = 3;
|
||||
uint64 last_messaage_time = 4;
|
||||
uint64 route_updates_in = 5;
|
||||
uint64 route_updates_out = 6;
|
||||
// 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;
|
||||
}
|
||||
|
||||
message PeerStatusResponse { repeated PeerStatus peer_status = 1; }
|
||||
|
||||
@ -32,10 +32,9 @@ use eyre::{anyhow, Result};
|
||||
use ip_network_table_deps_treebitmap::IpLookupTable;
|
||||
use tonic::transport::Endpoint;
|
||||
use tonic::transport::Uri;
|
||||
use tracing::{info, warn};
|
||||
use tracing::info;
|
||||
|
||||
use crate::fib_state::FibState;
|
||||
use crate::netlink::NetlinkConnector;
|
||||
use crate::proto::route_service_client::RouteServiceClient;
|
||||
use crate::southbound_interface::SouthboundInterface;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user