Skip to content

Commit bef880a

Browse files
committed
Comments about external IPs
1 parent 7605115 commit bef880a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

nexus/db-model/src/project.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ impl DatastoreCollectionConfig<IpPool> for Project {
9292
type CollectionIdColumn = ip_pool::dsl::project_id;
9393
}
9494

95-
// TODO(https://github.com/oxidecomputer/omicron/issues/1482): Not yet utilized
95+
// TODO(https://github.com/oxidecomputer/omicron/issues/1482): Not yet utilized,
96+
// but needed for project deletion safety.
97+
// TODO(https://github.com/oxidecomputer/omicron/issues/1334): Cannot be
98+
// utilized until floating IPs are implemented.
9699
impl DatastoreCollectionConfig<ExternalIp> for Project {
97100
type CollectionId = Uuid;
98101
type GenerationNumberColumn = project::dsl::rcgen;

nexus/tests/integration_tests/projects.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,4 +442,9 @@ async fn test_project_deletion_with_ip_pool(
442442
delete_project(&url, &client).await;
443443
}
444444

445-
// TODO: external IP
445+
// TODO(https://github.com/oxidecomputer/omicron/issues/1334): Once floating IPs
446+
// are implemented, we should:
447+
// - Create a project-scoped external IP
448+
// - Attempt to delete the project (show that we cannot)
449+
// - Delete the external IP
450+
// - Delete the project

0 commit comments

Comments
 (0)