+static const struct blobmsg_policy dev_attrs[__DEV_ATTR_MAX] = {
+ [DEV_ATTR_TYPE] = { "type", BLOBMSG_TYPE_STRING },
+ [DEV_ATTR_NAME] = { "name", BLOBMSG_TYPE_STRING },
+ [DEV_ATTR_IFNAME] = { "ifname", BLOBMSG_TYPE_ARRAY },
+ [DEV_ATTR_MTU] = { "mtu", BLOBMSG_TYPE_INT32 },
+ [DEV_ATTR_MACADDR] = { "macaddr", BLOBMSG_TYPE_STRING },
+ [DEV_ATTR_TXQUEUELEN] = { "txqueuelen", BLOBMSG_TYPE_INT32 },
+};
+
+const struct config_param_list device_attr_list = {
+ .n_params = __DEV_ATTR_MAX,
+ .params = dev_attrs,
+};
+
+static struct device *
+simple_device_create(struct blob_attr *attr)