Skip to content

Commit

Permalink
Merge pull request #3 from fabric-testbed/stitch-port-facility-port
Browse files Browse the repository at this point in the history
Updating README. Fixing policy to look for Net.FacilityPort.XX instead of Net.StitchPort.XXX
  • Loading branch information
ibaldin authored Jun 22, 2022
2 parents 9f84ac8 + d795fb8 commit f33e209
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ Using CI Logon many of the EduCause attributes should be available.
| project-tag | String |

The following is an incomplete list of possible project tag values:
- VM.NoLimitCPU - allows to create VMs with X CPUs or more
- VM.NoLimitRAM - allows to create VMs with X GB of RAM or more
- VM.NoLimitDisk - allows to create VMs with X GB of disk or more
- VM.NoLimitCPU - allows to create VMs with more than 2 CPU cores
- VM.NoLimitRAM - allows to create VMs with more than 10 GB of RAM
- VM.NoLimitDisk - allows to create VMs with more than 10 GB of disk
- VM.NoLimit - VM.NoLimitCPU | VM.NoLimitRAM | VM.NoLimitDisk
- Component.GPU - allows to provision and attach GPU components
- Component.FPGA - allows to provision and attach FPGA components
- Component.SmartNIC - allows to provision and attach 25G and 100G dedicated SmartNIC components
- Component.Storage - allows to create and attach rotating storage
- Component.NVME - allows to provision and attach NVME components
- Net.NoLimitBW - allows to provision links over X Gbps
- Net.NoLimitBW - allows to provision links over 10 Gbps
- Net.Peering - allows to create slices with public peering
- Net.PortMirroring - allows to create slices that include port mirroring
- Net.FacilityPort.XXX - allows to create slices with stitch port with short name XXX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ namespace fabricTags {
}
}
}
rule withStitchPorts {
rule withFacilityPorts {
deny
condition stringBagSize(Attributes.resourceFacilityPort) > 0 && not(map(function[stringConcatenate], "Net.StitchPort.", Attributes.resourceFacilityPort) == Attributes.projectTag)
condition stringBagSize(Attributes.resourceFacilityPort) > 0 && not(map(function[stringConcatenate], "Net.FacilityPort.", Attributes.resourceFacilityPort) == Attributes.projectTag)
on deny {
advice reasonToDeny {
Attributes.message = "Policy Violation: Your project is lacking Net.StitchPort.XXX tag to request a slice with stitch ports to sites."
Attributes.message = "Policy Violation: Your project is lacking Net.FacilityPort.<facility-port-name> tag to request a slice with facility ports."
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src-gen/fabricTags.OrchestratorTags.xml

Large diffs are not rendered by default.

0 comments on commit f33e209

Please sign in to comment.