Skip to content

Commit c27d392

Browse files
committed
Fix sonic-yang-mgmt
1 parent 121ceff commit c27d392

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/sonic-yang-mgmt/sonic_yang_ext.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def _xlateMapList(self, model, yang, config, table, exceptionList):
527527
to sonic_yang.json.
528528
"""
529529
def _xlateList(self, model, yang, config, table, exceptionList):
530-
530+
531531
#Qos Map lists needs special handling because of inner yang list and
532532
#config db format.
533533
if model['@name'] in qos_maps_model or model['@name'] in cbf_maps_model:
@@ -791,14 +791,14 @@ def _revYangConvert(val):
791791
}
792792
"""
793793

794-
def _revQosMapXlateList(self, model, yang, config, table):
794+
def _revMapXlateList(self, model, yang, config, table):
795795
# get keys from YANG model list itself
796796
listKeys = model['key']['@value']
797797
# create a dict to map each key under primary key with a dict yang model.
798798
# This is done to improve performance of mapping from values of TABLEs in
799799
# config DB to leaf in YANG LIST.
800800

801-
# Gather inner list key and value from model
801+
# Gather inner list key and value from model
802802
inner_clist = model.get('list')
803803
if inner_clist:
804804
inner_listKey = inner_clist['key']['@value']
@@ -827,10 +827,10 @@ def _revQosMapXlateList(self, model, yang, config, table):
827827
Rev xlate from <TABLE>_LIST to table in config DB
828828
"""
829829
def _revXlateList(self, model, yang, config, table):
830-
830+
831831
# 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)
834834
return
835835

836836
# get keys from YANG model list itself

0 commit comments

Comments
 (0)