@@ -12,7 +12,6 @@ use crate::db::pool::DbConnection;
12
12
use crate :: db:: queries:: next_item:: DefaultShiftGenerator ;
13
13
use crate :: db:: queries:: next_item:: NextItem ;
14
14
use crate :: db:: schema:: network_interface:: dsl;
15
- use crate :: defaults:: NUM_INITIAL_RESERVED_IP_ADDRESSES ;
16
15
use chrono:: DateTime ;
17
16
use chrono:: Utc ;
18
17
use diesel:: pg:: Pg ;
@@ -26,6 +25,7 @@ use diesel::QueryResult;
26
25
use diesel:: RunQueryDsl ;
27
26
use ipnetwork:: IpNetwork ;
28
27
use ipnetwork:: Ipv4Network ;
28
+ use nexus_defaults:: NUM_INITIAL_RESERVED_IP_ADDRESSES ;
29
29
use omicron_common:: api:: external;
30
30
use std:: net:: IpAddr ;
31
31
use uuid:: Uuid ;
@@ -1806,10 +1806,10 @@ mod tests {
1806
1806
fn available_ipv4_addresses ( & self ) -> [ usize ; 2 ] {
1807
1807
[
1808
1808
self . subnets [ 0 ] . ipv4_block . size ( ) as usize
1809
- - crate :: defaults :: NUM_INITIAL_RESERVED_IP_ADDRESSES
1809
+ - nexus_defaults :: NUM_INITIAL_RESERVED_IP_ADDRESSES
1810
1810
- 1 ,
1811
1811
self . subnets [ 1 ] . ipv4_block . size ( ) as usize
1812
- - crate :: defaults :: NUM_INITIAL_RESERVED_IP_ADDRESSES
1812
+ - nexus_defaults :: NUM_INITIAL_RESERVED_IP_ADDRESSES
1813
1813
- 1 ,
1814
1814
]
1815
1815
}
@@ -1969,7 +1969,7 @@ mod tests {
1969
1969
let addresses = context. net1 . subnets [ 0 ]
1970
1970
. ipv4_block
1971
1971
. iter ( )
1972
- . skip ( crate :: defaults :: NUM_INITIAL_RESERVED_IP_ADDRESSES ) ;
1972
+ . skip ( nexus_defaults :: NUM_INITIAL_RESERVED_IP_ADDRESSES ) ;
1973
1973
1974
1974
for ( i, expected_address) in addresses. take ( 2 ) . enumerate ( ) {
1975
1975
let instance =
0 commit comments