drop vlan-id from the gre tunnel definition

tunnels should use interface.vlan.id

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2021-10-13 17:35:33 +02:00
parent 7e59b142cb
commit ac24d7f0ff
3 changed files with 0 additions and 27 deletions

View File

@@ -14,9 +14,3 @@ properties:
type: string
format: ipv4
example: '192.168.100.1'
vlan-id:
description:
This is the id of the vlan that shall be assigned to the interface.
type: integer
maximum: 4096

View File

@@ -3843,23 +3843,6 @@ function instantiateInterfaceTunnelGre(location, value, errors) {
obj.peer_address = parsePeerAddress(location + "/peer-address", value["peer-address"], errors);
}
function parseVlanId(location, value, errors) {
if (type(value) in [ "int", "double" ]) {
if (value > 4096)
push(errors, [ location, "must be lower than or equal to 4096" ]);
}
if (type(value) != "int")
push(errors, [ location, "must be of type integer" ]);
return value;
}
if (exists(value, "vlan-id")) {
obj.vlan_id = parseVlanId(location + "/vlan-id", value["vlan-id"], errors);
}
return obj;
}

View File

@@ -1486,10 +1486,6 @@
"type": "string",
"format": "ipv4",
"example": "192.168.100.1"
},
"vlan-id": {
"type": "integer",
"maximum": 4096
}
}
},