wlan-ap-Telecominfraproject/feeds/wlan-ap/opensync/patches/08-command-table.patch
John Crispin 1bab63de00 opensync: add command manager
This adds 2 new tables
* CommandConfig
* CommandState

This allows us to remotely trigger, tcpdump, remote syslog, ...

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-22 14:58:04 +02:00

99 lines
2.5 KiB
Diff

Index: opensync-2.0.5.0/interfaces/opensync.ovsschema
===================================================================
--- opensync-2.0.5.0.orig/interfaces/opensync.ovsschema
+++ opensync-2.0.5.0/interfaces/opensync.ovsschema
@@ -8525,6 +8525,92 @@
}
},
"isRoot": true
- }
+ },
+ "Command_Config": {
+ "columns": {
+ "command": {
+ "type": {
+ "key": {
+ "type": "string"
+ }
+ }
+ },
+ "timestamp": {
+ "type": {
+ "key": {
+ "type": "integer"
+ }
+ }
+ },
+ "delay": {
+ "type": {
+ "key": {
+ "type": "integer"
+ }
+ }
+ },
+ "duration": {
+ "type": {
+ "key": {
+ "type": "integer"
+ }
+ }
+ },
+ "payload": {
+ "type": {
+ "key": "string",
+ "value": "string",
+ "min": 0,
+ "max": "unlimited"
+ }
+ }
+ },
+ "isRoot": true
+ },
+ "Command_State": {
+ "columns": {
+ "cmd_uuid": {
+ "type": {
+ "key": {
+ "type": "uuid",
+ "refTable": "Command_Config"
+ }
+ }
+ },
+ "state": {
+ "type": {
+ "key": {
+ "type": "string",
+ "enum": [
+ "set",
+ [
+ "waiting",
+ "pending",
+ "running",
+ "complete",
+ "failed"
+ ]
+ ]
+ }
+ }
+ },
+ "timestamp": {
+ "type": {
+ "key": {
+ "type": "integer"
+ }
+ }
+ },
+ "result": {
+ "type": {
+ "key": "string",
+ "value": "string",
+ "min": 0,
+ "max": "unlimited"
+ }
+ }
+ },
+ "isRoot": true
+ }
}
}