@@ -527,7 +527,7 @@ def _xlateMapList(self, model, yang, config, table, exceptionList):
527
527
to sonic_yang.json.
528
528
"""
529
529
def _xlateList (self , model , yang , config , table , exceptionList ):
530
-
530
+
531
531
#Qos Map lists needs special handling because of inner yang list and
532
532
#config db format.
533
533
if model ['@name' ] in qos_maps_model or model ['@name' ] in cbf_maps_model :
@@ -791,14 +791,14 @@ def _revYangConvert(val):
791
791
}
792
792
"""
793
793
794
- def _revQosMapXlateList (self , model , yang , config , table ):
794
+ def _revMapXlateList (self , model , yang , config , table ):
795
795
# get keys from YANG model list itself
796
796
listKeys = model ['key' ]['@value' ]
797
797
# create a dict to map each key under primary key with a dict yang model.
798
798
# This is done to improve performance of mapping from values of TABLEs in
799
799
# config DB to leaf in YANG LIST.
800
800
801
- # Gather inner list key and value from model
801
+ # Gather inner list key and value from model
802
802
inner_clist = model .get ('list' )
803
803
if inner_clist :
804
804
inner_listKey = inner_clist ['key' ]['@value' ]
@@ -827,10 +827,10 @@ def _revQosMapXlateList(self, model, yang, config, table):
827
827
Rev xlate from <TABLE>_LIST to table in config DB
828
828
"""
829
829
def _revXlateList (self , model , yang , config , table ):
830
-
830
+
831
831
# special processing for QOS Map table.
832
- if model ['@name' ] in qos_maps_model :
833
- self ._revQosMapXlateList (model , yang , config , table )
832
+ if model ['@name' ] in qos_maps_model or model [ '@name' ] in cbf_maps_model :
833
+ self ._revMapXlateList (model , yang , config , table )
834
834
return
835
835
836
836
# get keys from YANG model list itself
0 commit comments