Commit b6dd7391 authored by Feten Besbes's avatar Feten Besbes
Browse files

Ticket refs #15458: fix permissions

parent e35c9b8e
......@@ -3574,7 +3574,7 @@ int entry_method_root_LANDevice(struct dmctx *ctx)
inline int entry_landevice_sub_instance(struct dmctx *ctx, struct uci_section *landevice_section, char *interface, char *idev)
{
IF_MATCH(ctx, DMROOT"LANDevice.%s.", idev) {
DMOBJECT(DMROOT"LANDevice.%s.", ctx, "1", 0, NULL, delete_landevice, NULL, idev);
DMOBJECT(DMROOT"LANDevice.%s.", ctx, "0", 0, NULL, delete_landevice, NULL, idev);
DMPARAM("Alias", ctx, "1", get_lan_dev_alias, set_lan_dev_alias, NULL, 0, 1, UNDEF, NULL);
DMOBJECT(DMROOT"LANDevice.%s.LANHostConfigManagement.", ctx, "0", 1, NULL, NULL, NULL, idev);
DMPARAM("DNSServers", ctx, "1", get_lan_dns, set_lan_dns, NULL, 0, 1, UNDEF, NULL);
......
......@@ -835,7 +835,7 @@ int entry_method_root_layer3_forwarding(struct dmctx *ctx)
inline int entry_layer3_forwarding_instance(struct dmctx *ctx, char *iroute, char *permission)
{
IF_MATCH(ctx, DMROOT"Layer3Forwarding.Forwarding.%s.", iroute) {
DMOBJECT(DMROOT"Layer3Forwarding.Forwarding.%s.", ctx, "1", 1, NULL, delete_layer3_forwarding, NULL, iroute);
DMOBJECT(DMROOT"Layer3Forwarding.Forwarding.%s.", ctx, "0", 1, NULL, delete_layer3_forwarding, NULL, iroute);
DMPARAM("Enable", ctx, "1", get_layer3_enable, set_layer3_enable, "xsd:boolean", 0, 1, UNDEF, NULL);
DMPARAM("Status", ctx, "0", get_layer3_status, NULL, NULL, 0, 1, UNDEF, NULL);
DMPARAM("Alias", ctx, "1", get_layer3_alias, set_layer3_alias, NULL, 0, 1, UNDEF, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment