diff --git a/dev-tools/omdb/tests/usage_errors.out b/dev-tools/omdb/tests/usage_errors.out index b7fe7bdf7f..4865393495 100644 --- a/dev-tools/omdb/tests/usage_errors.out +++ b/dev-tools/omdb/tests/usage_errors.out @@ -290,7 +290,7 @@ Options: for discretionary services) - query-during-inventory: Sleds whose sled agents should be queried for inventory - reservation-create: Sleds on which reservations can be created - - v2p-mapping: Sleds which should be sent OPTE V2P mappings + - vpc-routing: Sleds which should be sent OPTE V2P mappings - vpc-firewall: Sleds which should be sent VPC firewall rules --log-level diff --git a/nexus/db-queries/src/db/datastore/v2p_mapping.rs b/nexus/db-queries/src/db/datastore/v2p_mapping.rs index 9ab9657b61..3c6acd3df3 100644 --- a/nexus/db-queries/src/db/datastore/v2p_mapping.rs +++ b/nexus/db-queries/src/db/datastore/v2p_mapping.rs @@ -67,7 +67,7 @@ impl DataStore { .filter( network_interface::kind.eq(NetworkInterfaceKind::Instance), ) - .sled_filter(SledFilter::V2PMapping) + .sled_filter(SledFilter::VpcRouting) .select(( NetworkInterface::as_select(), Sled::as_select(), @@ -116,7 +116,7 @@ impl DataStore { .inner_join(sled_dsl::sled.on(sled_dsl::id.eq(probe_dsl::sled))) .filter(network_interface::time_deleted.is_null()) .filter(network_interface::kind.eq(NetworkInterfaceKind::Probe)) - .sled_filter(SledFilter::V2PMapping) + .sled_filter(SledFilter::VpcRouting) .select(( NetworkInterface::as_select(), Sled::as_select(), diff --git a/nexus/src/app/background/tasks/v2p_mappings.rs b/nexus/src/app/background/tasks/v2p_mappings.rs index bea2d11ee6..b832370034 100644 --- a/nexus/src/app/background/tasks/v2p_mappings.rs +++ b/nexus/src/app/background/tasks/v2p_mappings.rs @@ -42,7 +42,7 @@ impl BackgroundTask for V2PManager { // Get sleds // we only care about sleds that are active && inservice - let sleds = match self.datastore.sled_list_all_batched(opctx, SledFilter::V2PMapping).await + let sleds = match self.datastore.sled_list_all_batched(opctx, SledFilter::VpcRouting).await { Ok(v) => v, Err(e) => { diff --git a/nexus/src/app/background/tasks/vpc_routes.rs b/nexus/src/app/background/tasks/vpc_routes.rs index 5ba428308b..fe7dc6f8d1 100644 --- a/nexus/src/app/background/tasks/vpc_routes.rs +++ b/nexus/src/app/background/tasks/vpc_routes.rs @@ -59,7 +59,7 @@ impl BackgroundTask for VpcRouteManager { let sleds = match self .datastore - .sled_list_all_batched(opctx, SledFilter::InService) + .sled_list_all_batched(opctx, SledFilter::VpcRouting) .await { Ok(v) => v, diff --git a/nexus/types/src/deployment/planning_input.rs b/nexus/types/src/deployment/planning_input.rs index 3e8bc9aa2c..c5e377aeb9 100644 --- a/nexus/types/src/deployment/planning_input.rs +++ b/nexus/types/src/deployment/planning_input.rs @@ -485,7 +485,7 @@ pub enum SledFilter { ReservationCreate, /// Sleds which should be sent OPTE V2P mappings. - V2PMapping, + VpcRouting, /// Sleds which should be sent VPC firewall rules. VpcFirewall, @@ -541,7 +541,7 @@ impl SledPolicy { SledFilter::InService => true, SledFilter::QueryDuringInventory => true, SledFilter::ReservationCreate => true, - SledFilter::V2PMapping => true, + SledFilter::VpcRouting => true, SledFilter::VpcFirewall => true, }, SledPolicy::InService { @@ -553,7 +553,7 @@ impl SledPolicy { SledFilter::InService => true, SledFilter::QueryDuringInventory => true, SledFilter::ReservationCreate => false, - SledFilter::V2PMapping => true, + SledFilter::VpcRouting => true, SledFilter::VpcFirewall => true, }, SledPolicy::Expunged => match filter { @@ -563,7 +563,7 @@ impl SledPolicy { SledFilter::InService => false, SledFilter::QueryDuringInventory => false, SledFilter::ReservationCreate => false, - SledFilter::V2PMapping => false, + SledFilter::VpcRouting => false, SledFilter::VpcFirewall => false, }, } @@ -595,7 +595,7 @@ impl SledState { SledFilter::InService => true, SledFilter::QueryDuringInventory => true, SledFilter::ReservationCreate => true, - SledFilter::V2PMapping => true, + SledFilter::VpcRouting => true, SledFilter::VpcFirewall => true, }, SledState::Decommissioned => match filter { @@ -605,7 +605,7 @@ impl SledState { SledFilter::InService => false, SledFilter::QueryDuringInventory => false, SledFilter::ReservationCreate => false, - SledFilter::V2PMapping => false, + SledFilter::VpcRouting => false, SledFilter::VpcFirewall => false, }, }