mirror of
https://github.com/luscis/openlan.git
synced 2025-12-24 11:10:54 +08:00
245 lines
7.1 KiB
JSON
Executable File
245 lines
7.1 KiB
JSON
Executable File
{
|
|
"name": "OpenLAN_Switch",
|
|
"version": "22.02.13",
|
|
"tables": {
|
|
"Global_Switch": {
|
|
"columns": {
|
|
"protocol": {
|
|
"type": "string"
|
|
},
|
|
"listen": {
|
|
"type": {
|
|
"key": {
|
|
"type": "integer",
|
|
"minInteger": 1024,
|
|
"maxInteger": 65535
|
|
}
|
|
}
|
|
},
|
|
"other_config": {
|
|
"type": {
|
|
"key": "string",
|
|
"value": "string",
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
}
|
|
},
|
|
"virtual_networks": {
|
|
"type": {
|
|
"key": {
|
|
"type": "uuid",
|
|
"refTable": "Virtual_Network"
|
|
},
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
}
|
|
}
|
|
},
|
|
"isRoot": true,
|
|
"maxRows": 1
|
|
},
|
|
"Virtual_Network": {
|
|
"columns": {
|
|
"name": {
|
|
"type": "string",
|
|
"mutable": false
|
|
},
|
|
"other_config": {
|
|
"type": {
|
|
"key": "string",
|
|
"value": "string",
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
}
|
|
},
|
|
"provider": {
|
|
"type": "string"
|
|
},
|
|
"bridge": {
|
|
"type": "string"
|
|
},
|
|
"address": {
|
|
"type": "string"
|
|
},
|
|
"remote_links": {
|
|
"type": {
|
|
"key": {
|
|
"type": "uuid",
|
|
"refTable": "Virtual_Link"
|
|
},
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
},
|
|
"ephemeral": true
|
|
},
|
|
"local_links": {
|
|
"type": {
|
|
"key": {
|
|
"type": "uuid",
|
|
"refTable": "Virtual_Link"
|
|
},
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
}
|
|
},
|
|
"prefix_routes": {
|
|
"type": {
|
|
"key": {
|
|
"type": "uuid",
|
|
"refTable": "Prefix_Route"
|
|
},
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
}
|
|
},
|
|
"open_vpn": {
|
|
"type": {
|
|
"key": {
|
|
"type": "uuid",
|
|
"refTable": "Open_VPN"
|
|
},
|
|
"min": 0,
|
|
"max": 1
|
|
}
|
|
}
|
|
},
|
|
"indexes": [
|
|
["name"]
|
|
]
|
|
},
|
|
"Virtual_Link": {
|
|
"columns": {
|
|
"network": {
|
|
"type": "string",
|
|
"mutable": false
|
|
},
|
|
"connection": {
|
|
"type": "string"
|
|
},
|
|
"link_state": {
|
|
"type": "string",
|
|
"ephemeral": true
|
|
},
|
|
"device": {
|
|
"type": "string"
|
|
},
|
|
"authentication": {
|
|
"type": {
|
|
"key": "string",
|
|
"value": "string",
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
}
|
|
},
|
|
"other_config": {
|
|
"type": {
|
|
"key": "string",
|
|
"value": "string",
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
}
|
|
},
|
|
"status": {
|
|
"type": {
|
|
"key": "string",
|
|
"value": "string",
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
},
|
|
"ephemeral": true
|
|
},
|
|
"statistics": {
|
|
"type": {
|
|
"key": "string",
|
|
"value": "integer",
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
}
|
|
}
|
|
},
|
|
"indexes": [
|
|
["connection","device", "network"]
|
|
]
|
|
},
|
|
"Prefix_Route": {
|
|
"columns": {
|
|
"network": {
|
|
"type": "string",
|
|
"mutable": false
|
|
},
|
|
"prefix": {
|
|
"type": "string",
|
|
"mutable": false
|
|
},
|
|
"source": {
|
|
"type": "string"
|
|
},
|
|
"gateway": {
|
|
"type": "string"
|
|
},
|
|
"mode": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"indexes": [
|
|
["prefix", "network"]
|
|
]
|
|
},
|
|
"Open_VPN": {
|
|
"columns": {
|
|
"protocol": {
|
|
"type": "string"
|
|
},
|
|
"listen": {
|
|
"type": {
|
|
"key": {
|
|
"type": "integer",
|
|
"minInteger": 1024,
|
|
"maxInteger": 65535
|
|
}
|
|
}
|
|
},
|
|
"subnet": {
|
|
"type": "string"
|
|
},
|
|
"push": {
|
|
"type": {
|
|
"key": "string",
|
|
"value": "string",
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
}
|
|
},
|
|
"clients": {
|
|
"type": {
|
|
"key": "string",
|
|
"value": "string",
|
|
"min": 0,
|
|
"max": "unlimited"
|
|
}
|
|
}
|
|
},
|
|
"indexes": [
|
|
["protocol", "listen"]
|
|
]
|
|
},
|
|
"Name_Cache": {
|
|
"columns": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"address": {
|
|
"type": "string"
|
|
},
|
|
"update_at": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"indexes": [
|
|
["name"]
|
|
],
|
|
"isRoot": true
|
|
}
|
|
}
|
|
}
|