diff --git a/sled-agent/src/services.rs b/sled-agent/src/services.rs index 3363950c46..ff10d4aed7 100644 --- a/sled-agent/src/services.rs +++ b/sled-agent/src/services.rs @@ -5066,9 +5066,9 @@ mod test { fn test_bootstrap_addr_to_techport_prefixes() { let ba: Ipv6Addr = "fdb0:1122:3344:5566::".parse().unwrap(); let prefixes = ServiceManager::bootstrap_addr_to_techport_prefixes(&ba); - assert!(prefixes.iter().all(|p| p.net().prefix() == 64)); - let prefix0 = prefixes[0].net().network(); - let prefix1 = prefixes[1].net().network(); + assert!(prefixes.iter().all(|p| p.net().width() == 64)); + let prefix0 = prefixes[0].net().prefix(); + let prefix1 = prefixes[1].net().prefix(); assert_eq!(prefix0.segments()[1..], ba.segments()[1..]); assert_eq!(prefix1.segments()[1..], ba.segments()[1..]); assert_eq!(prefix0.segments()[0], 0xfdb1);