Skip to content

Commit

Permalink
Add vrf support
Browse files Browse the repository at this point in the history
Signed-off-by: André Cirne <[email protected]>
  • Loading branch information
MrSuicideParrot committed Jan 19, 2025
1 parent f702472 commit e6526e4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ pub fn get_ip_vrf(ip: IpAddr) -> Option<String> {
}
}



match vrf_index {
Some(vrf_index) => {
let vrf_link_msg = host.get_link(netlink::LinkID::ID(vrf_index)).unwrap();
Expand Down Expand Up @@ -68,10 +66,7 @@ pub fn get_ip_vrf(ip: IpAddr) -> Option<String> {
return Some(vrf_name);
}
},
None => {

}

None => { }
}
return None;
}

0 comments on commit e6526e4

Please sign in to comment.