[PATCH procd] instance: dump netdev params
stijn at linux-ipv6.be
stijn at linux-ipv6.be
Mon Sep 26 11:22:59 PDT 2022
Add the netdev param to the instance_dump function to make it possible
to verify this for an existing instance.
Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
service/instance.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/service/instance.c b/service/instance.c
index 8202d65..9863c7d 100644
--- a/service/instance.c
+++ b/service/instance.c
@@ -1707,6 +1707,14 @@ void instance_dump(struct blob_buf *b, struct service_instance *in, int verbose)
blobmsg_close_table(b, e);
}
+ if (!avl_is_empty(&in->netdev.avl)) {
+ struct blobmsg_list_node *var;
+ void *n = blobmsg_open_array(b, "netdev");
+ blobmsg_list_for_each(&in->netdev, var)
+ blobmsg_add_string(b, NULL, blobmsg_data(var->data));
+ blobmsg_close_array(b, n);
+ }
+
if (in->reload_signal)
blobmsg_add_u32(b, "reload_signal", in->reload_signal);
--
2.35.1
More information about the openwrt-devel
mailing list