From b6dd7391f245a311663d2a34a44dbd37dbce89e4 Mon Sep 17 00:00:00 2001 From: Feten Besbes Date: Fri, 13 Jul 2018 16:02:06 +0100 Subject: [PATCH] Ticket refs #15458: fix permissions --- dm/dmtree/tr098/landevice.c | 2 +- dm/dmtree/tr098/layer_3_forwarding.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dm/dmtree/tr098/landevice.c b/dm/dmtree/tr098/landevice.c index deca926..1828db2 100644 --- a/dm/dmtree/tr098/landevice.c +++ b/dm/dmtree/tr098/landevice.c @@ -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); diff --git a/dm/dmtree/tr098/layer_3_forwarding.c b/dm/dmtree/tr098/layer_3_forwarding.c index c2b639d..e09807b 100644 --- a/dm/dmtree/tr098/layer_3_forwarding.c +++ b/dm/dmtree/tr098/layer_3_forwarding.c @@ -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);