Skip to content

Add allow_ddm_traffic to port config in CRDB - #11117

Open
andrewjstone wants to merge 2 commits into
mainfrom
multirack-join-service-part-3.5
Open

Add allow_ddm_traffic to port config in CRDB#11117
andrewjstone wants to merge 2 commits into
mainfrom
multirack-join-service-part-3.5

Conversation

@andrewjstone

Copy link
Copy Markdown
Contributor

For multirack testing we need to be able to enable DDM traffic on a front port. We only want to expose this configuraton via RSS now, as the vast majority of multirack is not ready and we only want to do internal testing. We want to leave the external API untouched right now.

However, the sync_switch_configuration background task will immediately overwrite the value set in RSS, if we always hard code it to the default of false. Therefore, we had to add code to plumb the value into CRDB from RSS and apply it during the sync_switch_configuration background task.

Thanks to @jgallagher for pointing this out earlier.

For multirack testing we need to be able to enable DDM traffic on a
front port. We only want to expose this configuraton via RSS now, as
the vast majority of multirack is not ready and we only want to do internal
testing. We want to leave the external API untouched right now.

However, the `sync_switch_configuration` background task will
immediately overwrite the value set in RSS, if we always hard code it to
the default of false. Therefore, we had to add code to plumb the value
into CRDB from RSS and apply it during the `sync_switch_configuration`
background task.

Thanks to @jgallagher for [pointing this out earlier](#11091 (comment)).
Comment thread nexus/src/app/rack.rs
match self
.db_datastore
.switch_port_settings_create(opctx, &port_settings_params, None)
.switch_port_settings_create(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where the value from RSS is actually stored in the DB.

Base automatically changed from multirack-join-service-part-3 to main August 20, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant