From 2997e9781b3bc991ce32da52c4a550b69e31407b Mon Sep 17 00:00:00 2001 From: Amin Ben Ramdhane Date: Tue, 17 Mar 2020 17:20:30 +0100 Subject: [PATCH] Update the object definition according to the code generation --- dmtree/tr181/dhcpv4.c | 4 ++-- dmtree/tr181/dhcpv4.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dmtree/tr181/dhcpv4.c b/dmtree/tr181/dhcpv4.c index 664d2988..e4465f52 100644 --- a/dmtree/tr181/dhcpv4.c +++ b/dmtree/tr181/dhcpv4.c @@ -2996,7 +2996,7 @@ DMOBJ tDHCPv4ServerObj[] = { /*** DHCPv4.Server.Pool.{i}. ***/ DMOBJ tDHCPv4ServerPoolObj[] = { /* OBJ, permission, addobj, delobj, checkobj, browseinstobj, forced_inform, notification, nextdynamicobj, nextobj, leaf, linker, bbfdm_type*/ -{"StaticAddress", &DMWRITE, add_dhcp_staticaddress, delete_dhcp_staticaddress, NULL, browseDhcpStaticInst, NULL, NULL, NULL, NULL, tDHCPv4ServerPoolAddressParams, NULL, BBFDM_BOTH}, +{"StaticAddress", &DMWRITE, add_dhcp_staticaddress, delete_dhcp_staticaddress, NULL, browseDhcpStaticInst, NULL, NULL, NULL, NULL, tDHCPv4ServerPoolStaticAddressParams, NULL, BBFDM_BOTH}, {"Option", &DMWRITE, addObjDHCPv4ServerPoolOption, delObjDHCPv4ServerPoolOption, NULL, browseDHCPv4ServerPoolOptionInst, NULL, NULL, NULL, NULL, tDHCPv4ServerPoolOptionParams, NULL, BBFDM_BOTH}, {"Client", &DMREAD, NULL, NULL, NULL, browseDhcpClientInst, NULL, NULL, NULL, tDHCPv4ServerPoolClientObj, tDHCPv4ServerPoolClientParams, get_dhcp_client_linker}, {0} @@ -3033,7 +3033,7 @@ DMLEAF tDHCPv4ServerPoolParams[] = { }; /*** DHCPv4.Server.Pool.{i}.StaticAddress.{i}. ***/ -DMLEAF tDHCPv4ServerPoolAddressParams[] = { +DMLEAF tDHCPv4ServerPoolStaticAddressParams[] = { /* PARAM, permission, type, getvalue, setvalue, forced_inform, notification, bbfdm_type*/ {"Alias", &DMWRITE, DMT_STRING, get_dhcp_static_alias, set_dhcp_static_alias, NULL, NULL, BBFDM_BOTH}, {"Chaddr", &DMWRITE, DMT_STRING, get_dhcp_staticaddress_chaddr, set_dhcp_staticaddress_chaddr, NULL, NULL, BBFDM_BOTH}, diff --git a/dmtree/tr181/dhcpv4.h b/dmtree/tr181/dhcpv4.h index 8f6a66eb..e841d7cd 100644 --- a/dmtree/tr181/dhcpv4.h +++ b/dmtree/tr181/dhcpv4.h @@ -19,7 +19,7 @@ extern DMOBJ tDHCPv4ServerObj[]; extern DMOBJ tDHCPv4ServerPoolObj[]; extern DMOBJ tDHCPv4ServerPoolClientObj[]; extern DMLEAF tDHCPv4ServerPoolParams[]; -extern DMLEAF tDHCPv4ServerPoolAddressParams[]; +extern DMLEAF tDHCPv4ServerPoolStaticAddressParams[]; extern DMLEAF tDHCPv4ServerPoolClientParams[]; extern DMLEAF tDHCPv4ServerPoolClientIPv4AddressParams[];