diff --git a/dmtree/vendor/iopsys/tr181/bridging.c b/dmtree/vendor/iopsys/tr181/bridging.c index 9d2bdd68..95dcbab1 100644 --- a/dmtree/vendor/iopsys/tr181/bridging.c +++ b/dmtree/vendor/iopsys/tr181/bridging.c @@ -39,33 +39,6 @@ static int set_BridgingBridgePort_Egress_PriorityRegeneration(char *refparam, st return 0; } -static int get_BridgingBridgePort_DSCP_Eth_Priority_Map(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value) -{ - bridging_get_priority_list("dscp2pbit", data, value); - return 0; -} - -static int set_BridgingBridgePort_DSCP_Eth_Priority_Map(char *refparam, struct dmctx *ctx, void *data, char *instance, char *value, int action) -{ - char *type = NULL; - - switch (action) { - case VALUECHECK: - if (dm_validate_unsignedInt_list(value, 1, 64, -1, RANGE_ARGS{{"0","7"}}, 1)) - return FAULT_9007; - - dmuci_get_value_by_section_string(((struct bridge_port_args *)data)->bridge_port_sec, "type", &type); - if (DM_STRLEN(type) == 0) - return FAULT_9007; - - return 0; - case VALUESET: - bridging_set_priority_list("dscp2pbit", data, value); - return 0; - } - return 0; -} - static int get_BridgingBridgeVLAN_TVID(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value) { bridging_get_vlan_tvid("tvid", data, value); @@ -92,7 +65,6 @@ static int set_BridgingBridgeVLAN_TVID(char *refparam, struct dmctx *ctx, void * DMLEAF tIOPSYS_BridgingBridgePortParams[] = { /* PARAM, permission, type, getvalue, setvalue, bbfdm_type*/ {BBF_VENDOR_PREFIX"EgressPriorityRegeneration", &DMWRITE, DMT_STRING, get_BridgingBridgePort_Egress_PriorityRegeneration, set_BridgingBridgePort_Egress_PriorityRegeneration, BBFDM_BOTH}, -{BBF_VENDOR_PREFIX"DSCPEthernetPriorityMapping", &DMWRITE, DMT_STRING, get_BridgingBridgePort_DSCP_Eth_Priority_Map, set_BridgingBridgePort_DSCP_Eth_Priority_Map, BBFDM_BOTH}, {0} }; diff --git a/dmtree/vendor/iopsys/vendor.json b/dmtree/vendor/iopsys/vendor.json index ddd803d9..99632a8f 100644 --- a/dmtree/vendor/iopsys/vendor.json +++ b/dmtree/vendor/iopsys/vendor.json @@ -497,30 +497,6 @@ } ] } - }, - "{BBF_VENDOR_PREFIX}DSCPEthernetPriorityMapping": { - "type": "string", - "read": true, - "write": true, - "version": "2.5", - "protocols": [ - "cwmp", - "usp" - ], - "description": "DSCP to pbit mapping, to map pbit to untagged vlan packet created at the cpe", - "list": { - "datatype": "unsignedInt", - "item": { - "min": 1, - "max": 64 - }, - "range": [ - { - "min": 0, - "max": 7 - } - ] - } } }, "Device.Bridging.Bridge.{i}.VLAN.{i}.": {