ironic.common.validate module

ironic.common.validate.is_bmc_subscription_id_valid(bmc_subscription_id: str) → bool[source]

Validate BMC IDs to be sent to Redfish subscription endpoints.

Note there’s no well-defined type or schema for these subscription IDs. Therefore we try to reject illegal characters or some short illegal substrings.