diff options
| author | omnom62 <omnom62@outlook.com> | 2026-11-10 13:27:12 +1000 |
|---|---|---|
| committer | omnom62 <omnom62@outlook.com> | 2026-11-10 13:27:12 +1000 |
| commit | cc78dc8fbe35efd59392b3532e611de0347c32bf (patch) | |
| tree | 9136bba79edc1e87a577fa3da496f4dd83a9f98c /plugins/httpapi | |
| parent | a70899f9c06709e743515880769e17d70cc87ed4 (diff) | |
| download | rest.vyos-cc78dc8fbe35efd59392b3532e611de0347c32bf.tar.gz rest.vyos-cc78dc8fbe35efd59392b3532e611de0347c32bf.zip | |
T8989: vyos_configure CORE6 fixes SIT
Diffstat (limited to 'plugins/httpapi')
| -rw-r--r-- | plugins/httpapi/vyos.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/httpapi/vyos.py b/plugins/httpapi/vyos.py index b13a807..bc54e3b 100644 --- a/plugins/httpapi/vyos.py +++ b/plugins/httpapi/vyos.py @@ -310,7 +310,10 @@ class HttpApi(HttpApiBase): auth_method = self.get_option("auth_method") or "key" form_data = {} - if op_kwargs: + 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"} |
