Merge pull request #10 from Telecominfraproject/change_vrf_id_to_integer

Change VRF id type from number to integer
This commit is contained in:
Olexandr, Mazur
2024-02-21 18:16:16 +02:00
committed by GitHub
6 changed files with 30 additions and 30 deletions

View File

@@ -40,7 +40,7 @@ properties:
vrf:
description:
VRF id.
type: number
type: integer
ipv4-unreachable:
description:
Define a list of non-interface specific UNREACHABLE routes.
@@ -58,4 +58,4 @@ properties:
vrf:
description:
VRF id.
type: number
type: integer

View File

@@ -30,7 +30,7 @@ properties:
vrf:
description:
VRF id.
type: number
type: integer
gateway:
description:
This option defines the static IPv4 gateway of the logical interface.
@@ -55,7 +55,7 @@ properties:
vrf:
description:
VRF id.
type: number
type: integer
metric:
description:
Optional metric value (define a NH route's weight / metric).
@@ -77,7 +77,7 @@ properties:
vrf:
description:
VRF id.
type: number
type: integer
multicast:
type: object
properties:

View File

@@ -532,8 +532,8 @@ function instantiateGlobals(location, value, errors) {
}
function parseVrf(location, value, errors) {
if (!(type(value) in [ "int", "double" ]))
push(errors, [ location, "must be of type number" ]);
if (type(value) != "int")
push(errors, [ location, "must be of type integer" ]);
return value;
}
@@ -588,8 +588,8 @@ function instantiateGlobals(location, value, errors) {
}
function parseVrf(location, value, errors) {
if (!(type(value) in [ "int", "double" ]))
push(errors, [ location, "must be of type number" ]);
if (type(value) != "int")
push(errors, [ location, "must be of type integer" ]);
return value;
}
@@ -2549,8 +2549,8 @@ function instantiateInterfaceIpv4(location, value, errors) {
}
function parseVrf(location, value, errors) {
if (!(type(value) in [ "int", "double" ]))
push(errors, [ location, "must be of type number" ]);
if (type(value) != "int")
push(errors, [ location, "must be of type integer" ]);
return value;
}
@@ -2622,8 +2622,8 @@ function instantiateInterfaceIpv4(location, value, errors) {
}
function parseVrf(location, value, errors) {
if (!(type(value) in [ "int", "double" ]))
push(errors, [ location, "must be of type number" ]);
if (type(value) != "int")
push(errors, [ location, "must be of type integer" ]);
return value;
}
@@ -2689,8 +2689,8 @@ function instantiateInterfaceIpv4(location, value, errors) {
}
function parseVrf(location, value, errors) {
if (!(type(value) in [ "int", "double" ]))
push(errors, [ location, "must be of type number" ]);
if (type(value) != "int")
push(errors, [ location, "must be of type integer" ]);
return value;
}

View File

@@ -429,7 +429,7 @@
},
"vrf": {
"description": "VRF id.",
"type": "number"
"type": "integer"
}
}
}
@@ -450,7 +450,7 @@
},
"vrf": {
"description": "VRF id.",
"type": "number"
"type": "integer"
}
}
}
@@ -1340,7 +1340,7 @@
},
"vrf": {
"description": "VRF id.",
"type": "number"
"type": "integer"
}
}
}
@@ -1369,7 +1369,7 @@
},
"vrf": {
"description": "VRF id.",
"type": "number"
"type": "integer"
},
"metric": {
"description": "Optional metric value (define a NH route's weight / metric).",
@@ -1394,7 +1394,7 @@
},
"vrf": {
"description": "VRF id.",
"type": "number"
"type": "integer"
}
}
}

View File

@@ -251,7 +251,7 @@
]
},
"vrf": {
"type": "number"
"type": "integer"
}
}
}
@@ -269,7 +269,7 @@
]
},
"vrf": {
"type": "number"
"type": "integer"
}
}
}
@@ -1094,7 +1094,7 @@
]
},
"vrf": {
"type": "number"
"type": "integer"
}
}
}
@@ -1119,7 +1119,7 @@
]
},
"vrf": {
"type": "number"
"type": "integer"
},
"metric": {
"type": "number"
@@ -1140,7 +1140,7 @@
]
},
"vrf": {
"type": "number"
"type": "integer"
}
}
}

View File

@@ -280,7 +280,7 @@
},
"vrf": {
"description": "VRF id.",
"type": "number"
"type": "integer"
}
}
}
@@ -301,7 +301,7 @@
},
"vrf": {
"description": "VRF id.",
"type": "number"
"type": "integer"
}
}
}
@@ -1248,7 +1248,7 @@
},
"vrf": {
"description": "VRF id.",
"type": "number"
"type": "integer"
}
}
}
@@ -1277,7 +1277,7 @@
},
"vrf": {
"description": "VRF id.",
"type": "number"
"type": "integer"
},
"metric": {
"description": "Optional metric value (define a NH route's weight / metric).",
@@ -1302,7 +1302,7 @@
},
"vrf": {
"description": "VRF id.",
"type": "number"
"type": "integer"
}
}
}