Skip to content

Helpers to simplify generation of facility models with complex port configurations, and addition of a `Virtual` field to `xir.ResourceAllocation`

Brian Kocoloski requested to merge bjk-dev into main
  1. Add convenience function SwpStart() to support Swp allocation from a given starting index
  2. Add BreakoutMultiTrunk() to support running multiple trunks (bonds) over a single breakout cable configuration
  3. Add Virtual field to xir.ResourceAllocation to make it easier for the portal to track hypervisor resource usage
    • this is done in such a way (appending to the end) so as to not break existing users of the ResourceAllocation type

1 and 2 were needed in developing the redstar facility model. 3 supports efficient tracking of hypervisor resources, which currently is in use in the portal's implementation of the GetResources API call

Edited by Brian Kocoloski

Merge request reports