Skip to content
This repository was archived by the owner on Nov 29, 2017. It is now read-only.

Commit 9e817dc

Browse files
author
Joji Mekkatt
authored
Merge pull request #58 from jojimt/I801
Fix contiv/netplugin#801
2 parents ca81b46 + bd953b7 commit 9e817dc

File tree

4 files changed

+386
-386
lines changed

4 files changed

+386
-386
lines changed

aciGw.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"type": "string",
1919
"title": "List of ACI fabric ports connected to cluster",
2020
"length": 2048,
21-
"format": "^$|^(topology/pod-[0-9]{1,4}/paths-[0-9]{1,4}/pathep-\\\\[eth[0-9]{1,2}/[0-9]{1,2}\\\\]){1}(,topology/pod-[0-9]{1,4}/paths-[0-9]{1,4}/pathep-\\\\[eth[0-9]{1,2}/[0-9]{1,2}\\\\])?$",
21+
"format": "^$|^(topology/pod-[0-9]{1,4}/paths-[0-9]{1,4}/pathep-\\\\[eth[0-9]{1,2}/[0-9]{1,2}\\\\]){1}(,topology/pod-[0-9]{1,4}/paths-[0-9]{1,4}/pathep-\\\\[eth[0-9]{1,2}/[0-9]{1,2}\\\\])*$",
2222
"ShowSummary": true
2323
},
2424
"nodeBindings": {
2525
"type": "string",
2626
"title": "List of ACI complete nodes to be bound",
2727
"length": 2048,
28-
"format": "^$|^(topology/pod-[0-9]{1,4}/node-[0-9]{1,4}){1}(,topology/pod-[0-9]{1,4}/node-[0-9]{1,4})?$",
28+
"format": "^$|^(topology/pod-[0-9]{1,4}/node-[0-9]{1,4}){1}(,topology/pod-[0-9]{1,4}/node-[0-9]{1,4})*$",
2929
"ShowSummary": true
3030
},
3131
"physicalDomain": {

contivModel.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ func ValidateAciGw(obj *AciGw) error {
14071407
return errors.New("nodeBindings string too long")
14081408
}
14091409

1410-
nodeBindingsMatch := regexp.MustCompile("^$|^(topology/pod-[0-9]{1,4}/node-[0-9]{1,4}){1}(,topology/pod-[0-9]{1,4}/node-[0-9]{1,4})?$")
1410+
nodeBindingsMatch := regexp.MustCompile("^$|^(topology/pod-[0-9]{1,4}/node-[0-9]{1,4}){1}(,topology/pod-[0-9]{1,4}/node-[0-9]{1,4})*$")
14111411
if nodeBindingsMatch.MatchString(obj.NodeBindings) == false {
14121412
return errors.New("nodeBindings string invalid format")
14131413
}
@@ -1416,7 +1416,7 @@ func ValidateAciGw(obj *AciGw) error {
14161416
return errors.New("pathBindings string too long")
14171417
}
14181418

1419-
pathBindingsMatch := regexp.MustCompile("^$|^(topology/pod-[0-9]{1,4}/paths-[0-9]{1,4}/pathep-\\[eth[0-9]{1,2}/[0-9]{1,2}\\]){1}(,topology/pod-[0-9]{1,4}/paths-[0-9]{1,4}/pathep-\\[eth[0-9]{1,2}/[0-9]{1,2}\\])?$")
1419+
pathBindingsMatch := regexp.MustCompile("^$|^(topology/pod-[0-9]{1,4}/paths-[0-9]{1,4}/pathep-\\[eth[0-9]{1,2}/[0-9]{1,2}\\]){1}(,topology/pod-[0-9]{1,4}/paths-[0-9]{1,4}/pathep-\\[eth[0-9]{1,2}/[0-9]{1,2}\\])*$")
14201420
if pathBindingsMatch.MatchString(obj.PathBindings) == false {
14211421
return errors.New("pathBindings string invalid format")
14221422
}

0 commit comments

Comments
 (0)