From cc78dc8fbe35efd59392b3532e611de0347c32bf Mon Sep 17 00:00:00 2001 From: omnom62 Date: Tue, 10 Nov 2026 13:27:12 +1000 Subject: T8989: vyos_configure CORE6 fixes SIT --- plugins/httpapi/vyos.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/httpapi') 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"} -- cgit v1.2.3