schame: tunnel peer-addr is ipv4

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2021-06-01 13:00:38 +02:00
parent f7c2d39c98
commit fb16e56f80
4 changed files with 8 additions and 8 deletions

View File

@@ -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:

View File

@@ -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:

View File

@@ -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" ]);
}

View File

@@ -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": {