mirror of
				https://github.com/Telecominfraproject/ols-ucentral-schema.git
				synced 2025-10-30 17:47:59 +00:00 
			
		
		
		
	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:
		| @@ -14,9 +14,3 @@ properties: | |||||||
|     type: string |     type: string | ||||||
|     format: ipv4 |     format: ipv4 | ||||||
|     example: '192.168.100.1' |     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 |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -3843,23 +3843,6 @@ function instantiateInterfaceTunnelGre(location, value, errors) { | |||||||
| 			obj.peer_address = parsePeerAddress(location + "/peer-address", value["peer-address"], 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; | 		return obj; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1486,10 +1486,6 @@ | |||||||
|                     "type": "string", |                     "type": "string", | ||||||
|                     "format": "ipv4", |                     "format": "ipv4", | ||||||
|                     "example": "192.168.100.1" |                     "example": "192.168.100.1" | ||||||
|                 }, |  | ||||||
|                 "vlan-id": { |  | ||||||
|                     "type": "integer", |  | ||||||
|                     "maximum": 4096 |  | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         }, |         }, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin