summaryrefslogtreecommitdiff
path: root/plugins/httpapi
diff options
context:
space:
mode:
authoromnom62 <omnom62@outlook.com>2026-11-06 15:28:20 +1000
committeromnom62 <omnom62@outlook.com>2026-11-06 15:28:20 +1000
commit8e7c8e5fa41033c6e307ed90bfd824bcf0649b24 (patch)
tree37249d6f8a78738232f56e297fa23110a22e690e /plugins/httpapi
parent4e59e33e38daf8df4cb1aaedfb39a8a95e927531 (diff)
downloadrest.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')
-rw-r--r--plugins/httpapi/vyos.py6
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"}