Modify the constraint to allow single quote for DPDK core list param
authorSaravanan KR <skramaja@redhat.com>
Fri, 14 Oct 2016 11:16:50 +0000 (16:46 +0530)
committerSaravanan KR <skramaja@redhat.com>
Fri, 14 Oct 2016 11:16:50 +0000 (16:46 +0530)
DPDK core list has to be give a string. For multiple cores, it
be given as "'1,2'". But the constraint does not allow ' (single
quote) to be set in the string. Modifying the constraint pattern.
Closes-Bug: #1633433

Change-Id: Ide2194d9ef5c10e276fa1a634919dfb286e483d6

puppet/services/neutron-ovs-dpdk-agent.yaml

index cc772c9..fdfa1c0 100644 (file)
@@ -22,7 +22,7 @@ parameters:
     description: List of cores to be used for DPDK Poll Mode Driver
     type: string
     constraints:
-      - allowed_pattern: "[0-9,-]+"
+      - allowed_pattern: "'[0-9,-]+'"
   NeutronDpdkMemoryChannels:
     description: Number of memory channels to be used for DPDK
     type: string