Add EnvLogger and start of trait fn for dumping routes
Some checks are pending
Rust / build (push) Waiting to run

This commit is contained in:
Rayhaan Jaufeerally
2024-08-17 14:16:46 +00:00
parent 4a7e346153
commit 9b44ab782d
8 changed files with 83 additions and 31 deletions

View File

@ -25,6 +25,18 @@ pub struct NetlinkConnector {
#[async_trait]
impl SouthboundInterface for NetlinkConnector {
async fn get_all_routes(
&mut self,
address_family: AddressFamilyIdentifier,
) -> Result<Vec<(NLRI, IpAddr)>> {
let route = self.handle.route();
let mut get_request = route.get(address_family.into());
get_request.message_mut().header.table = 201;
todo!();
}
async fn route_add(
&mut self,
address_family: AddressFamilyIdentifier,