diff options
| author | omnom62 <omnom62@outlook.com> | 2026-11-06 15:28:20 +1000 |
|---|---|---|
| committer | omnom62 <omnom62@outlook.com> | 2026-11-06 15:28:20 +1000 |
| commit | 8e7c8e5fa41033c6e307ed90bfd824bcf0649b24 (patch) | |
| tree | 37249d6f8a78738232f56e297fa23110a22e690e /plugins/httpapi/vyos.py | |
| parent | 4e59e33e38daf8df4cb1aaedfb39a8a95e927531 (diff) | |
| download | rest.vyos-t8989_lag_interfaces_mod15.tar.gz rest.vyos-t8989_lag_interfaces_mod15.zip | |
T8989: lag_interfaces mod15 and SIT fixest8989_lag_interfaces_mod15
Diffstat (limited to 'plugins/httpapi/vyos.py')
| -rw-r--r-- | plugins/httpapi/vyos.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/httpapi/vyos.py b/plugins/httpapi/vyos.py index b13a807..b27b7c9 100644 --- a/plugins/httpapi/vyos.py +++ b/plugins/httpapi/vyos.py @@ -311,6 +311,12 @@ class HttpApi(HttpApiBase): form_data = {} if op_kwargs: + # form_data["data"] = json.dumps(op_kwargs) + form_data = {} + if "_raw_list" in op_kwargs: + # A batch of commands: the API takes the bare list, not an object wrapping it. + form_data["data"] = json.dumps(op_kwargs["_raw_list"]) + elif op_kwargs: form_data["data"] = json.dumps(op_kwargs) headers = {"Content-Type": "application/x-www-form-urlencoded"} |
