Skip to content

Commit 703f978

Browse files
committed
Alignment
1 parent c132df1 commit 703f978

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

src/sonic-yang-mgmt/sonic_yang_ext.py

-2
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ def _xlateQosMapList(self, model, yang, config, table, exceptionList):
478478
if inner_listKey != lkey:
479479
inner_listVal = lkey
480480

481-
leafDict = self._createLeafDict(model, table)
482481
# get keys from YANG model list itself
483482
listKeys = model['key']['@value']
484483
self.sysLog(msg="xlateList keyList:{}".format(listKeys))
@@ -795,7 +794,6 @@ def _revQosMapXlateList(self, model, yang, config, table):
795794
# create a dict to map each key under primary key with a dict yang model.
796795
# This is done to improve performance of mapping from values of TABLEs in
797796
# config DB to leaf in YANG LIST.
798-
leafDict = self._createLeafDict(model, table)
799797

800798
# Gather inner list key and value from model
801799
inner_clist = model.get('list')

src/sonic-yang-models/tests/files/sample_config_db.json

+18-13
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,7 @@
12001200
"4": "4"
12011201
}
12021202
},
1203+
12031204
"DOT1P_TO_TC_MAP": {
12041205
"Dot1p_to_tc_map1": {
12051206
"1": "1",
@@ -1210,6 +1211,7 @@
12101211
"4": "4"
12111212
}
12121213
},
1214+
12131215
"TC_TO_PRIORITY_GROUP_MAP": {
12141216
"tc_to_pg_map1": {
12151217
"1": "1",
@@ -1220,6 +1222,7 @@
12201222
"4": "4"
12211223
}
12221224
},
1225+
12231226
"TC_TO_QUEUE_MAP": {
12241227
"tc_to_q_map1": {
12251228
"1": "1",
@@ -1230,45 +1233,47 @@
12301233
"4": "4"
12311234
}
12321235
},
1236+
12331237
"MAP_PFC_PRIORITY_TO_QUEUE": {
12341238
"pfc_prio_to_q_map1": {
12351239
"1": "1",
12361240
"2": "2"
1237-
},
1241+
},
12381242
"pfc_prio_to_q_map2": {
12391243
"3": "3",
12401244
"4": "4"
12411245
}
12421246
},
1247+
12431248
"PFC_PRIORITY_TO_PRIORITY_GROUP_MAP": {
12441249
"pfc_prio_to_pg_map1": {
12451250
"1": "1",
12461251
"2": "2"
12471252
},
1248-
"pfc_prio_to_pg_map2": {
1253+
"pfc_prio_to_pg_map2": {
12491254
"3": "3",
12501255
"4": "4"
12511256
}
12521257
},
12531258

1254-
"PORT_QOS_MAP": {
1259+
"PORT_QOS_MAP": {
12551260
"Ethernet0": {
12561261
"dot1p_to_tc_map" : "Dot1p_to_tc_map1",
12571262
"dscp_to_tc_map": "Dscp_to_tc_map1",
1258-
"tc_to_queue_map": "tc_to_q_map1",
1259-
"tc_to_pg_map": "tc_to_pg_map1",
1260-
"pfc_to_queue_map": "pfc_prio_to_q_map1",
1261-
"pfc_to_pg_map" : "pfc_prio_to_pg_map1",
1262-
"pfc_enable" : "3,4"
1263+
"tc_to_queue_map": "tc_to_q_map1",
1264+
"tc_to_pg_map": "tc_to_pg_map1",
1265+
"pfc_to_queue_map": "pfc_prio_to_q_map1",
1266+
"pfc_to_pg_map" : "pfc_prio_to_pg_map1",
1267+
"pfc_enable" : "3,4"
12631268
},
12641269
"Ethernet4": {
12651270
"dot1p_to_tc_map" : "Dot1p_to_tc_map2",
12661271
"dscp_to_tc_map": "Dscp_to_tc_map2",
1267-
"tc_to_queue_map": "tc_to_q_map2",
1268-
"tc_to_pg_map": "tc_to_pg_map2",
1269-
"pfc_to_queue_map": "pfc_prio_to_q_map2",
1270-
"pfc_to_pg_map" : "pfc_prio_to_pg_map2",
1271-
"pfc_enable" : "3,4"
1272+
"tc_to_queue_map": "tc_to_q_map2",
1273+
"tc_to_pg_map": "tc_to_pg_map2",
1274+
"pfc_to_queue_map": "pfc_prio_to_q_map2",
1275+
"pfc_to_pg_map" : "pfc_prio_to_pg_map2",
1276+
"pfc_enable" : "3,4"
12721277
}
12731278
}
12741279
},

0 commit comments

Comments
 (0)