mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-10-30 01:32:26 +00:00
schame: tunnel peer-addr is ipv4
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -12,7 +12,7 @@ properties:
|
|||||||
This is the IP address of the remote host, that the GRE tunnel shall be
|
This is the IP address of the remote host, that the GRE tunnel shall be
|
||||||
established with.
|
established with.
|
||||||
type: string
|
type: string
|
||||||
format: uc-cidr4
|
format: ipv4
|
||||||
example: '192.168.100.1'
|
example: '192.168.100.1'
|
||||||
vlan-id:
|
vlan-id:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ properties:
|
|||||||
This is the IP address of the remote host, that the VXLAN tunnel shall be
|
This is the IP address of the remote host, that the VXLAN tunnel shall be
|
||||||
established with.
|
established with.
|
||||||
type: string
|
type: string
|
||||||
format: uc-cidr4
|
format: ipv4
|
||||||
example: '192.168.100.1'
|
example: '192.168.100.1'
|
||||||
peer-port:
|
peer-port:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -2708,8 +2708,8 @@ function instantiateInterfaceTunnelVxlan(location, value, errors) {
|
|||||||
|
|
||||||
function parsePeerAddress(location, value, errors) {
|
function parsePeerAddress(location, value, errors) {
|
||||||
if (type(value) == "string") {
|
if (type(value) == "string") {
|
||||||
if (!matchUcCidr4(value))
|
if (!matchIpv4(value))
|
||||||
push(errors, [ location, "must be a valid IPv4 CIDR" ]);
|
push(errors, [ location, "must be a valid IPv4 address" ]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2772,8 +2772,8 @@ function instantiateInterfaceTunnelGre(location, value, errors) {
|
|||||||
|
|
||||||
function parsePeerAddress(location, value, errors) {
|
function parsePeerAddress(location, value, errors) {
|
||||||
if (type(value) == "string") {
|
if (type(value) == "string") {
|
||||||
if (!matchUcCidr4(value))
|
if (!matchIpv4(value))
|
||||||
push(errors, [ location, "must be a valid IPv4 CIDR" ]);
|
push(errors, [ location, "must be a valid IPv4 address" ]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1089,7 +1089,7 @@
|
|||||||
},
|
},
|
||||||
"peer-address": {
|
"peer-address": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "uc-cidr4",
|
"format": "ipv4",
|
||||||
"example": "192.168.100.1"
|
"example": "192.168.100.1"
|
||||||
},
|
},
|
||||||
"peer-port": {
|
"peer-port": {
|
||||||
@@ -1111,7 +1111,7 @@
|
|||||||
},
|
},
|
||||||
"peer-address": {
|
"peer-address": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "uc-cidr4",
|
"format": "ipv4",
|
||||||
"example": "192.168.100.1"
|
"example": "192.168.100.1"
|
||||||
},
|
},
|
||||||
"vlan-id": {
|
"vlan-id": {
|
||||||
|
|||||||
Reference in New Issue
Block a user