Allow dash as delimiter in MACs.
This commit is contained in:
parent
533710a2d4
commit
ffc0f13eb8
4 changed files with 9 additions and 8 deletions
server/resources
|
@ -32,7 +32,7 @@ function getNormalizedNodeData(reqData: any): CreateOrUpdateNode {
|
|||
_.each(nodeFields, function (field) {
|
||||
let value = normalizeString(reqData[field]);
|
||||
if (field === 'mac') {
|
||||
value = normalizeMac(value);
|
||||
value = normalizeMac(value as MAC);
|
||||
}
|
||||
node[field] = value;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue