Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vrf compatibility #562

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Add vrf support

070545b
Select commit
Loading
Failed to load commit list.
Draft

Add vrf compatibility #562

Add vrf support
070545b
Select commit
Loading
Failed to load commit list.
Cirrus CI / validate_aarch64 failed Jan 19, 2025 in 52s

Task Summary

Instruction main failed in 00:01

Details

✅ 00:02 clone
✅ 00:01 cargo
✅ 00:01 targets
✅ 00:00 bin
✅ 00:42 setup
❌ 00:01 main

�[31m-use netlink_packet_route::{address::AddressAttribute, link::LinkAttribute, link::LinkInfo, link::InfoKind};
�(B�[m�[32m+use netlink_packet_route::{
�(B�[m�[32m+    address::AddressAttribute, link::InfoKind, link::LinkAttribute, link::LinkInfo,
�(B�[m�[32m+};
�(B�[m 
 use std::net::IpAddr;
 
Diff in /var/tmp/aardvark-dns/src/utils/mod.rs:7:
 pub fn get_ip_vrf(ip: IpAddr) -> Option<String> {
�[31m-
�(B�[m     let mut host = netlink::Socket::new().unwrap();
 
     let addresses = host.dump_addresses().unwrap();
Diff in /var/tmp/aardvark-dns/src/utils/mod.rs:12:
     let mut address_index: Option<u32> = None;
�[31m- 
�(B�[m�[32m+
�(B�[m     'address_loop: for address in addresses {
         for nla in address.attributes.iter() {
             if let AddressAttribute::Address(this_ip) = &nla {
Diff in /var/tmp/aardvark-dns/src/utils/mod.rs:20:
                 }
             }
         }
�[31m-        
�(B�[m     }
�[31m-    let mut vrf_index : Option<u32>  = None;
�(B�[m�[32m+    let mut vrf_index: Option<u32> = None;
�(B�[m 
     match address_index {
         Some(address_index) => {
Diff in /var/tmp/aardvark-dns/src/utils/mod.rs:33:
                     break;
                 }
             }
�[31m-        },
�(B�[m�[32m+        }
�(B�[m         None => {
             return None;
         }
Diff in /var/tmp/aardvark-dns/src/utils/mod.rs:65:
             if is_vrf {
                 return Some(vrf_name);
             }
�[31m-        },
�(B�[m�[31m-        None => {   }
�(B�[m�[31m-    }    
�(B�[m�[32m+        }
�(B�[m�[32m+        None => {}
�(B�[m�[32m+    }
�(B�[m     return None;
 }
�[32m+
�(B�[mmake: *** [Makefile:116: validate] Error 1

Exit status: 2