mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-10-29 09:12:20 +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
|
||||
established with.
|
||||
type: string
|
||||
format: uc-cidr4
|
||||
format: ipv4
|
||||
example: '192.168.100.1'
|
||||
vlan-id:
|
||||
description:
|
||||
|
||||
@@ -12,7 +12,7 @@ properties:
|
||||
This is the IP address of the remote host, that the VXLAN tunnel shall be
|
||||
established with.
|
||||
type: string
|
||||
format: uc-cidr4
|
||||
format: ipv4
|
||||
example: '192.168.100.1'
|
||||
peer-port:
|
||||
description:
|
||||
|
||||
@@ -2708,8 +2708,8 @@ function instantiateInterfaceTunnelVxlan(location, value, errors) {
|
||||
|
||||
function parsePeerAddress(location, value, errors) {
|
||||
if (type(value) == "string") {
|
||||
if (!matchUcCidr4(value))
|
||||
push(errors, [ location, "must be a valid IPv4 CIDR" ]);
|
||||
if (!matchIpv4(value))
|
||||
push(errors, [ location, "must be a valid IPv4 address" ]);
|
||||
|
||||
}
|
||||
|
||||
@@ -2772,8 +2772,8 @@ function instantiateInterfaceTunnelGre(location, value, errors) {
|
||||
|
||||
function parsePeerAddress(location, value, errors) {
|
||||
if (type(value) == "string") {
|
||||
if (!matchUcCidr4(value))
|
||||
push(errors, [ location, "must be a valid IPv4 CIDR" ]);
|
||||
if (!matchIpv4(value))
|
||||
push(errors, [ location, "must be a valid IPv4 address" ]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1089,7 +1089,7 @@
|
||||
},
|
||||
"peer-address": {
|
||||
"type": "string",
|
||||
"format": "uc-cidr4",
|
||||
"format": "ipv4",
|
||||
"example": "192.168.100.1"
|
||||
},
|
||||
"peer-port": {
|
||||
@@ -1111,7 +1111,7 @@
|
||||
},
|
||||
"peer-address": {
|
||||
"type": "string",
|
||||
"format": "uc-cidr4",
|
||||
"format": "ipv4",
|
||||
"example": "192.168.100.1"
|
||||
},
|
||||
"vlan-id": {
|
||||
|
||||
Reference in New Issue
Block a user