[sonic-yang-models]: Test to Validate yang models with SONiC config. (#6637)

Changes:
— Remove unnecessary file libyang-python-tests/sample_config_db.json
— Keep only config in format of sonic_yang.json in yang_model_tests/yangTest.json.
— Keep config in format of config_db.json in file tests/files/sample_config_db.json
— Add a test case to validate yang models.


**- Why I did it**
As per discussion in sonic Yang workgroup, arranging files better so that Yang model can be in force for new config, also adding a test case to validate young models upto some extent.

**- How I did it**
Changes:
— Remove unnecessary file libyang-python-tests/sample_config_db.json
— Keep only config in format of sonic_yang.json in yang_model_tests/yangTest.json.
— Keep config in format of config_db.json in file tests/files/sample_config_db.json
— Add a test case to validate yang models.

**- How to verify it**
Build PKGs----Building-----
This commit is contained in:
Praveen Chaudhary 2021-03-09 18:48:35 -08:00 committed by GitHub
parent 38d973b834
commit 41af024d14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 801 additions and 1431 deletions

View File

@ -678,11 +678,16 @@ class SonicYangExtMixin:
"""
load_data: load Config DB, crop, xlate and create data tree from it. (Public)
input: data
debug Flag
returns: True - success False - failed
"""
def loadData(self, configdbJson):
def loadData(self, configdbJson, debug=False):
try:
# write Translated config in file if debug enabled
xlateFile = None
if debug:
xlateFile = "xlateConfig.json"
self.jIn = configdbJson
# reset xlate and tablesWithOutYang
self.xlateJson = dict()
@ -690,7 +695,7 @@ class SonicYangExtMixin:
# self.jIn will be cropped
self._cropConfigDB()
# xlated result will be in self.xlateJson
self._xlateConfigDB()
self._xlateConfigDB(xlateFile=xlateFile)
#print(self.xlateJson)
self.sysLog(msg="Try to load Data in the tree")
self.root = self.ctx.parse_data_mem(dumps(self.xlateJson), \
@ -706,14 +711,18 @@ class SonicYangExtMixin:
"""
Get data from Data tree, data tree will be assigned in self.xlateJson. (Public)
"""
def getData(self):
def getData(self, debug=False):
try:
# write reverse Translated config in file if debug enabled
revXlateFile = None
if debug:
revXlateFile = "revXlateConfig.json"
self.xlateJson = loads(self._print_data_mem('JSON'))
# reset reverse xlate
self.revXlateJson = dict()
# result will be stored self.revXlateJson
self._revXlateConfigDB()
self._revXlateConfigDB(revXlateFile=revXlateFile)
except Exception as e:
print("Get Data Tree Failed")

View File

@ -1,648 +0,0 @@
{
"VLAN_INTERFACE": {
"Vlan111|2a04:5555:45:6709::1/64": {
"scope": "global",
"family": "IPv6"
},
"Vlan111|10.222.10.65/26": {
"scope": "global",
"family": "IPv4"
},
"Vlan111|fe80::1/10": {
"scope": "local",
"family": "IPv6"
},
"Vlan777|2a04:5555:41:4e9::1/64": {
"scope": "global",
"family": "IPv6"
},
"Vlan777|10.111.58.65/26": {
"scope": "global",
"family": "IPv4"
},
"Vlan777|fe80::1/10": {
"scope": "local",
"family": "IPv6"
}
},
"ACL_RULE": {
"V4-ACL-TABLE|DEFAULT_DENY": {
"PACKET_ACTION": "DROP",
"IP_TYPE": "IPv4ANY",
"PRIORITY": "0"
},
"V4-ACL-TABLE|Rule_20": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.72.0/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777780",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_40": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.72.64/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777760",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_60": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.80.0/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777740",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_80": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.80.64/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777720",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_111": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.152.17.52/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777700",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_120": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.252.208.41/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777880",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_140": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.148.128.245/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777860",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_160": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.1.245/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777840",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_180": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.252.222.21/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777820",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_9000": {
"PACKET_ACTION": "DROP",
"DST_IP": "0.0.0.0/0",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "991110",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_11100": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "0.0.0.0/0",
"SRC_IP": "0.0.0.0/0",
"PRIORITY": "990000",
"IP_TYPE": "IPv4ANY"
},
"V6-ACL-TBLE|DEFAULT_DENY": {
"PACKET_ACTION": "DROP",
"IP_TYPE": "IPv6ANY",
"PRIORITY": "0"
},
"V6-ACL-TBLE|Rule_20": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777780",
"DST_IPV6": "2a04:5555:43:320::/64"
},
"V6-ACL-TBLE|Rule_40": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777760",
"DST_IPV6": "2a04:5555:43:321::/64"
},
"V6-ACL-TBLE|Rule_60": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777740",
"DST_IPV6": "2a04:5555:43:340::/64"
},
"V6-ACL-TBLE|Rule_80": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777720",
"DST_IPV6": "2a04:5555:43:341::/64"
},
"V6-ACL-TBLE|Rule_111": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777700",
"DST_IPV6": "2a04:5555:32:12::/64"
},
"V6-ACL-TBLE|Rule_9000": {
"PACKET_ACTION": "DROP",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "991110",
"DST_IPV6": "::/0"
},
"V6-ACL-TBLE|Rule_11100": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "::/0",
"PRIORITY": "990000",
"DST_IPV6": "::/0"
}
},
"DEVICE_METADATA": {
"localhost": {
"mg_type": "ToR",
"mac": "00:11:22:33:dd:5a",
"hostname": "asw.dc",
"bgp_asn": "64850",
"hwsku": "Stone"
}
},
"VLAN": {
"Vlan111": {
"description": "svlan",
"dhcp_servers": [
"10.222.72.116"
],
"vlanid": "111",
"mtu": "9216",
"admin_status": "up",
"members": [
"Ethernet8",
"Ethernet3",
"Ethernet0",
"Ethernet1",
"Ethernet6",
"Ethernet4",
"Ethernet5",
"Ethernet9",
"Ethernet2",
"Ethernet7",
"Ethernet32",
"Ethernet30",
"Ethernet31",
"Ethernet36",
"Ethernet34",
"Ethernet33",
"Ethernet35",
"Ethernet29",
"Ethernet21",
"Ethernet20",
"Ethernet23",
"Ethernet22",
"Ethernet27",
"Ethernet26",
"Ethernet18",
"Ethernet19",
"Ethernet14",
"Ethernet15",
"Ethernet16",
"Ethernet17",
"Ethernet10",
"Ethernet11",
"Ethernet12",
"Ethernet13",
"Ethernet28"
]
},
"Vlan777": {
"description": "pvlan",
"dhcp_servers": [
"10.222.72.116"
],
"vlanid": "777",
"mtu": "9216",
"admin_status": "up",
"members": [
"Ethernet9",
"Ethernet2",
"Ethernet8",
"Ethernet27",
"Ethernet14",
"Ethernet35"
]
}
},
"DEVICE_NEIGHBOR": {
"Ethernet112": {
"name": "dccsw01.nw",
"port": "Eth18"
},
"Ethernet114": {
"name": "dccsw02.nw",
"port": "Eth18"
},
"Ethernet116": {
"name": "dccsw03.nw",
"port": "Eth18"
},
"Ethernet118": {
"name": "dccsw04.nw",
"port": "Eth18"
}
},
"PORT": {
"Ethernet0": {
"alias": "Eth1/1",
"lanes": "65",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet1": {
"alias": "Eth1/2",
"lanes": "66",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet2": {
"alias": "Eth1/3",
"lanes": "67",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet3": {
"alias": "Eth1/4",
"lanes": "68",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet4": {
"alias": "Eth2/1",
"lanes": "69",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet5": {
"alias": "Eth2/2",
"lanes": "70",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet6": {
"alias": "Eth2/3",
"lanes": "71",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet7": {
"alias": "Eth2/4",
"lanes": "72",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet8": {
"alias": "Eth3/1",
"lanes": "73",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet9": {
"alias": "Eth3/2",
"lanes": "74",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet10": {
"alias": "Eth3/3",
"lanes": "75",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet11": {
"alias": "Eth3/4",
"lanes": "76",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet12": {
"alias": "Eth4/1",
"lanes": "77",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet13": {
"alias": "Eth4/2",
"lanes": "78",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet14": {
"alias": "Eth4/3",
"lanes": "79",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet15": {
"alias": "Eth4/4",
"lanes": "80",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet16": {
"alias": "Eth5/1",
"lanes": "33",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet17": {
"alias": "Eth5/2",
"lanes": "34",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet18": {
"alias": "Eth5/3",
"lanes": "35",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet19": {
"alias": "Eth5/4",
"lanes": "36",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet20": {
"alias": "Eth6/1",
"lanes": "37",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet21": {
"alias": "Eth6/2",
"lanes": "38",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet22": {
"alias": "Eth6/3",
"lanes": "39",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet23": {
"alias": "Eth6/4",
"lanes": "40",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet24": {
"alias": "Eth7/1",
"lanes": "41",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet25": {
"alias": "Eth7/2",
"lanes": "42",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet26": {
"alias": "Eth7/3",
"lanes": "43",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet27": {
"alias": "Eth7/4",
"lanes": "44",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet28": {
"alias": "Eth8/1",
"lanes": "45",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet29": {
"alias": "Eth8/2",
"lanes": "46",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet30": {
"alias": "Eth8/3",
"lanes": "47",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet31": {
"alias": "Eth8/4",
"lanes": "48",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet32": {
"alias": "Eth9/1",
"lanes": "49",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet33": {
"alias": "Eth9/2",
"lanes": "50",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet34": {
"alias": "Eth9/3",
"lanes": "51",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet35": {
"alias": "Eth9/4",
"lanes": "52",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet36": {
"alias": "Eth10/1",
"lanes": "53",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet112": {
"alias": "Eth29/1",
"lanes": "113,114",
"description": "50G|dccsw01.nw|Eth18",
"fec": "fc",
"admin_status": "up"
}
},
"ACL_TABLE": {
"V4-ACL-TABLE": {
"type": "L3",
"policy_desc": "V4-ACL-TABLE",
"ports": [
"Ethernet26",
"Ethernet27",
"Ethernet24"
]
},
"V6-ACL-TBLE": {
"type": "L3V6",
"policy_desc": "V6-ACL-TBLE",
"ports": [
"Ethernet14",
"Ethernet15",
"Ethernet23",
"Ethernet30",
"Ethernet31",
"Ethernet18",
"Ethernet19",
"Ethernet25",
"Ethernet24"
]
}
},
"INTERFACE": {
"Ethernet112|2a04:5555:40:a709::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet112|10.184.228.211/31": {
"scope": "global",
"family": "IPv4"
},
"Ethernet14|2a04:5555:40:a749::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet14|10.184.229.211/31": {
"scope": "global",
"family": "IPv4"
},
"Ethernet16|2a04:5555:40:a789::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet16|10.184.230.211/31": {
"scope": "global",
"family": "IPv4"
},
"Ethernet18|2a04:5555:40:a7c9::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet18|10.184.231.211/31": {
"scope": "global",
"family": "IPv4"
}
},
"VLAN_MEMBER": {
"Vlan111|Ethernet0": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet1": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet2": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet3": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet4": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet5": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet6": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet29": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet30": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet31": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet32": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet33": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet34": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet35": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet36": {
"tagging_mode": "untagged"
}
},
"LOOPBACK_INTERFACE": {
"Loopback0|2a04:5555:40:4::4e9/128": {
"scope": "global",
"family": "IPv6"
},
"Loopback0|10.184.8.233/32": {
"scope": "global",
"family": "IPv4"
}
},
"CRM": {
"Config": {
"polling_interval": "0"
}
}
}

View File

@ -269,7 +269,7 @@ class Test_SonicYang(object):
@pytest.fixture(autouse=True, scope='class')
def sonic_yang_data(self):
sonic_yang_dir = "../sonic-yang-models/yang-models/"
sonic_yang_test_file = "../sonic-yang-models/tests/yang_model_tests/yangTest.json"
sonic_yang_test_file = "../sonic-yang-models/tests/files/sample_config_db.json"
syc = sy.SonicYang(sonic_yang_dir)
syc.loadYangModel()
@ -281,6 +281,44 @@ class Test_SonicYang(object):
return sonic_yang_data
def test_validate_yang_models(self, sonic_yang_data):
'''
In this test, we validate yang models
a.) by converting the config as per RFC 7951 using YANG Models,
b.) by creating data tree using new YANG models and
c.) by validating config against YANG models.
Successful execution of these steps can be treated as
validation of new Yang models.
'''
test_file = sonic_yang_data['test_file']
syc = sonic_yang_data['syc']
# Currently only 2 YANG files are not directly related to config
# which are: sonic-extension.yang and sonic-types.yang. Hard coding
# it right now.
# If any more such helper yang files are added, we need to update here.
NON_CONFIG_YANG_FILES = 2
# read config
jIn = self.readIjsonInput(test_file, 'SAMPLE_CONFIG_DB_JSON')
jIn = json.loads(jIn)
numTables = len(jIn)
# load config and create Data tree
syc.loadData(jIn, debug=True)
# check all tables are loaded and config related to all Yang Models is
# loaded in Data tree.
assert len(syc.jIn) == numTables
print("{}:{}".format(len(syc.xlateJson), len(syc.yangFiles)))
assert len(syc.xlateJson) == len(syc.yangFiles) - NON_CONFIG_YANG_FILES
# Validate data tree
validTree = False
try:
syc.validate_data_tree()
validTree = True
except Exception as e:
pass
assert validTree == True
return
def test_xlate_rev_xlate(self, sonic_yang_data):
# In this test, xlation and revXlation is tested with latest Sonic
# YANG model.
@ -291,12 +329,12 @@ class Test_SonicYang(object):
jIn = json.loads(jIn)
numTables = len(jIn)
syc.loadData(jIn)
syc.loadData(jIn, debug=True)
# check all tables are loaded and no tables is without Yang Models
assert len(syc.jIn) == numTables
assert len(syc.tablesWithOutYang) == 0
syc.getData()
syc.getData(debug=True)
if syc.jIn and syc.jIn == syc.revXlateJson:
print("Xlate and Rev Xlate Passed")
@ -313,7 +351,7 @@ class Test_SonicYang(object):
test_file = sonic_yang_data['test_file']
syc = sonic_yang_data['syc']
jIn = self.readIjsonInput(test_file, 'SAMPLE_CONFIG_DB_JSON_1')
jIn = self.readIjsonInput(test_file, 'SAMPLE_CONFIG_DB_UNKNOWN')
syc.loadData(json.loads(jIn))

View File

@ -0,0 +1,693 @@
{
"SAMPLE_CONFIG_DB_JSON": {
"PORTCHANNEL": {
"PortChannel0003": {
"admin_status": "up",
"min_links": "1",
"members": [
"Ethernet1"
],
"mtu": "9100"
},
"PortChannel0004": {
"admin_status": "up",
"min_links": "1",
"members": [
"Ethernet2"
],
"mtu": "9100"
}
},
"VLAN_INTERFACE": {
"Vlan111": {},
"Vlan777": {},
"Vlan111|2a04:5555:45:6709::1/64": {
"scope": "global",
"family": "IPv6"
},
"Vlan111|10.222.10.65/26": {
"scope": "global",
"family": "IPv4"
},
"Vlan111|fe80::1/10": {
"scope": "local",
"family": "IPv6"
},
"Vlan777|2a04:5555:41:4e9::1/64": {
"scope": "global",
"family": "IPv6"
},
"Vlan777|10.111.58.65/26": {
"scope": "global",
"family": "IPv4"
},
"Vlan777|fe80::1/10": {
"scope": "local",
"family": "IPv6"
}
},
"ACL_RULE": {
"V4-ACL-TABLE|DEFAULT_DENY": {
"PACKET_ACTION": "DROP",
"IP_TYPE": "IPv4ANY",
"PRIORITY": "0"
},
"V4-ACL-TABLE|Rule_20": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.72.0/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777780",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_40": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.72.64/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777760",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_60": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.80.0/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777740",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_80": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.80.64/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777720",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_111": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.152.17.52/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777700",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_120": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.252.208.41/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777880",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_140": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.148.128.245/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777860",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_160": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.1.245/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777840",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_180": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.252.222.21/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777820",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_9000": {
"PACKET_ACTION": "DROP",
"DST_IP": "0.0.0.0/0",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "991110",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_11100": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "0.0.0.0/0",
"SRC_IP": "0.0.0.0/0",
"PRIORITY": "990000",
"IP_TYPE": "IPv4ANY"
},
"V6-ACL-TBLE|DEFAULT_DENY": {
"PACKET_ACTION": "DROP",
"IP_TYPE": "IPv6ANY",
"PRIORITY": "0"
},
"V6-ACL-TBLE|Rule_20": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777780",
"DST_IPV6": "2a04:5555:43:320::/64"
},
"V6-ACL-TBLE|Rule_40": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777760",
"DST_IPV6": "2a04:5555:43:321::/64"
},
"V6-ACL-TBLE|Rule_60": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777740",
"DST_IPV6": "2a04:5555:43:340::/64"
},
"V6-ACL-TBLE|Rule_80": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777720",
"DST_IPV6": "2a04:5555:43:341::/64"
},
"V6-ACL-TBLE|Rule_111": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777700",
"DST_IPV6": "2a04:5555:32:12::/64"
},
"V6-ACL-TBLE|Rule_9000": {
"PACKET_ACTION": "DROP",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "991110",
"DST_IPV6": "::/0"
},
"V6-ACL-TBLE|Rule_11100": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "::/0",
"PRIORITY": "990000",
"DST_IPV6": "::/0"
}
},
"DEVICE_METADATA": {
"localhost": {
"type": "ToRRouter",
"mac": "00:11:22:33:dd:5a",
"hostname": "asw.dc",
"bgp_asn": "64850",
"hwsku": "Stone"
}
},
"VLAN": {
"Vlan111": {
"description": "svlan",
"dhcp_servers": [
"10.222.72.116"
],
"vlanid": "111",
"mtu": "9216",
"admin_status": "up"
},
"Vlan777": {
"description": "pvlan",
"dhcp_servers": [
"10.222.72.116"
],
"vlanid": "777",
"mtu": "9216",
"admin_status": "up"
}
},
"DEVICE_NEIGHBOR": {
"Ethernet112": {
"name": "dccsw01.nw",
"port": "Eth18"
},
"Ethernet114": {
"name": "dccsw02.nw",
"port": "Eth18"
},
"Ethernet116": {
"name": "dccsw03.nw",
"port": "Eth18"
},
"Ethernet118": {
"name": "dccsw04.nw",
"port": "Eth18"
}
},
"PORT": {
"Ethernet0": {
"alias": "Eth1/1",
"lanes": "65",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet1": {
"alias": "Eth1/2",
"lanes": "66",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet2": {
"alias": "Eth1/3",
"lanes": "67",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet3": {
"alias": "Eth1/4",
"lanes": "68",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet4": {
"alias": "Eth2/1",
"lanes": "69",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet5": {
"alias": "Eth2/2",
"lanes": "70",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet6": {
"alias": "Eth2/3",
"lanes": "71",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet7": {
"alias": "Eth2/4",
"lanes": "72",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet8": {
"alias": "Eth3/1",
"lanes": "73",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet9": {
"alias": "Eth3/2",
"lanes": "74",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet10": {
"alias": "Eth3/3",
"lanes": "75",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet11": {
"alias": "Eth3/4",
"lanes": "76",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet12": {
"alias": "Eth4/1",
"lanes": "77",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet13": {
"alias": "Eth4/2",
"lanes": "78",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet14": {
"alias": "Eth4/3",
"lanes": "79",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet15": {
"alias": "Eth4/4",
"lanes": "80",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet16": {
"alias": "Eth5/1",
"lanes": "33",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet17": {
"alias": "Eth5/2",
"lanes": "34",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet18": {
"alias": "Eth5/3",
"lanes": "35",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet19": {
"alias": "Eth5/4",
"lanes": "36",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet20": {
"alias": "Eth6/1",
"lanes": "37",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet21": {
"alias": "Eth6/2",
"lanes": "38",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet22": {
"alias": "Eth6/3",
"lanes": "39",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet23": {
"alias": "Eth6/4",
"lanes": "40",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet24": {
"alias": "Eth7/1",
"lanes": "41",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet25": {
"alias": "Eth7/2",
"lanes": "42",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet26": {
"alias": "Eth7/3",
"lanes": "43",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet27": {
"alias": "Eth7/4",
"lanes": "44",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet28": {
"alias": "Eth8/1",
"lanes": "45",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet29": {
"alias": "Eth8/2",
"lanes": "46",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet30": {
"alias": "Eth8/3",
"lanes": "47",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet31": {
"alias": "Eth8/4",
"lanes": "48",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet32": {
"alias": "Eth9/1",
"lanes": "49",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet33": {
"alias": "Eth9/2",
"lanes": "50",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet34": {
"alias": "Eth9/3",
"lanes": "51",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet35": {
"alias": "Eth9/4",
"lanes": "52",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet36": {
"alias": "Eth10/1",
"lanes": "53",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet112": {
"alias": "Eth29/1",
"lanes": "113,114",
"description": "50G|dccsw01.nw|Eth18",
"fec": "fc",
"speed": "11100",
"admin_status": "up"
}
},
"ACL_TABLE": {
"V4-ACL-TABLE": {
"type": "L3",
"policy_desc": "V4-ACL-TABLE",
"ports": [
"Ethernet26",
"Ethernet27",
"Ethernet24"
],
"stage": "INGRESS",
"services": ["SNMP", "SSH"]
},
"V6-ACL-TBLE": {
"type": "L3V6",
"policy_desc": "V6-ACL-TBLE",
"ports": [
"Ethernet14",
"Ethernet15",
"Ethernet23",
"Ethernet30",
"Ethernet31",
"Ethernet18",
"Ethernet19",
"Ethernet25",
"Ethernet24"
]
}
},
"INTERFACE": {
"Ethernet112": {},
"Ethernet14": {},
"Ethernet16": {},
"Ethernet18": {},
"Ethernet112|2a04:5555:40:a709::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet112|10.184.228.211/31": {
"scope": "global",
"family": "IPv4"
},
"Ethernet14|2a04:5555:40:a749::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet14|10.184.229.211/31": {
"scope": "global",
"family": "IPv4"
},
"Ethernet16|2a04:5555:40:a789::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet16|10.184.230.211/31": {
"scope": "global",
"family": "IPv4"
},
"Ethernet18|2a04:5555:40:a7c9::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet18|10.184.231.211/31": {
"scope": "global",
"family": "IPv4"
}
},
"VLAN_MEMBER": {
"Vlan111|Ethernet0": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet1": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet2": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet3": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet4": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet5": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet6": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet29": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet30": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet31": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet32": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet33": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet34": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet35": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet36": {
"tagging_mode": "untagged"
}
},
"LOOPBACK_INTERFACE": {
"Loopback0": {},
"Loopback0|2a04:5555:40:4::4e9/128": {
"scope": "global",
"family": "IPv6"
},
"Loopback0|10.184.8.233/32": {
"scope": "global",
"family": "IPv4"
}
},
"BREAKOUT_CFG": {
"Ethernet0": {
"brkout_mode": "1x100G[40G]"
},
"Ethernet4": {
"brkout_mode": "4x25G[10G]"
},
"Ethernet8": {
"brkout_mode": "1x100G[40G]"
}
},
"VERSIONS": {
"DATABASE": {
"VERSION": "version_1_0_3"
}
},
"FLEX_COUNTER_TABLE": {
"PFCWD": {
"FLEX_COUNTER_STATUS": "enable"
},
"PG_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_RATES": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_BUFFER_DROP": {
"FLEX_COUNTER_STATUS": "enable"
},
"BUFFER_POOL_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"DEBUG_COUNTER": {
"FLEX_COUNTER_STATUS": "enable"
}
},
"CRM": {
"Config": {
"acl_counter_high_threshold": "85",
"acl_counter_low_threshold": "70",
"acl_counter_threshold_type": "percentage",
"ipv6_neighbor_high_threshold": "67",
"ipv6_neighbor_low_threshold": "56",
"ipv6_neighbor_threshold_type": "percentage",
"nexthop_group_high_threshold": "67",
"nexthop_group_low_threshold": "56",
"nexthop_group_threshold_type": "percentage",
"polling_interval": "0"
}
}
},
"SAMPLE_CONFIG_DB_UNKNOWN": {
"UNKNOWN_TABLE": {
"Error": "This Table is for testing, This Table does not have YANG models."
}
}
}

View File

@ -1263,730 +1263,6 @@
}
},
"SAMPLE_CONFIG_DB_JSON": {
"PORTCHANNEL": {
"PortChannel0003": {
"admin_status": "up",
"min_links": "1",
"members": [
"Ethernet1"
],
"mtu": "9100"
},
"PortChannel0004": {
"admin_status": "up",
"min_links": "1",
"members": [
"Ethernet2"
],
"mtu": "9100"
}
},
"VLAN_INTERFACE": {
"Vlan111": {},
"Vlan777": {},
"Vlan111|2a04:5555:45:6709::1/64": {
"scope": "global",
"family": "IPv6"
},
"Vlan111|10.222.10.65/26": {
"scope": "global",
"family": "IPv4"
},
"Vlan111|fe80::1/10": {
"scope": "local",
"family": "IPv6"
},
"Vlan777|2a04:5555:41:4e9::1/64": {
"scope": "global",
"family": "IPv6"
},
"Vlan777|10.111.58.65/26": {
"scope": "global",
"family": "IPv4"
},
"Vlan777|fe80::1/10": {
"scope": "local",
"family": "IPv6"
}
},
"ACL_RULE": {
"V4-ACL-TABLE|DEFAULT_DENY": {
"PACKET_ACTION": "DROP",
"IP_TYPE": "IPv4ANY",
"PRIORITY": "0"
},
"V4-ACL-TABLE|Rule_20": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.72.0/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777780",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_40": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.72.64/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777760",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_60": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.80.0/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777740",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_80": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.80.64/26",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777720",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_111": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.152.17.52/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777700",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_120": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.252.208.41/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777880",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_140": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.148.128.245/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777860",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_160": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.222.1.245/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777840",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_180": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "10.252.222.21/32",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "777820",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_9000": {
"PACKET_ACTION": "DROP",
"DST_IP": "0.0.0.0/0",
"SRC_IP": "10.222.0.0/15",
"PRIORITY": "991110",
"IP_TYPE": "IPv4ANY"
},
"V4-ACL-TABLE|Rule_11100": {
"PACKET_ACTION": "FORWARD",
"DST_IP": "0.0.0.0/0",
"SRC_IP": "0.0.0.0/0",
"PRIORITY": "990000",
"IP_TYPE": "IPv4ANY"
},
"V6-ACL-TBLE|DEFAULT_DENY": {
"PACKET_ACTION": "DROP",
"IP_TYPE": "IPv6ANY",
"PRIORITY": "0"
},
"V6-ACL-TBLE|Rule_20": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777780",
"DST_IPV6": "2a04:5555:43:320::/64"
},
"V6-ACL-TBLE|Rule_40": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777760",
"DST_IPV6": "2a04:5555:43:321::/64"
},
"V6-ACL-TBLE|Rule_60": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777740",
"DST_IPV6": "2a04:5555:43:340::/64"
},
"V6-ACL-TBLE|Rule_80": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777720",
"DST_IPV6": "2a04:5555:43:341::/64"
},
"V6-ACL-TBLE|Rule_111": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "777700",
"DST_IPV6": "2a04:5555:32:12::/64"
},
"V6-ACL-TBLE|Rule_9000": {
"PACKET_ACTION": "DROP",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "2a04:5555:41::/48",
"PRIORITY": "991110",
"DST_IPV6": "::/0"
},
"V6-ACL-TBLE|Rule_11100": {
"PACKET_ACTION": "FORWARD",
"IP_TYPE": "IPv6ANY",
"SRC_IPV6": "::/0",
"PRIORITY": "990000",
"DST_IPV6": "::/0"
}
},
"DEVICE_METADATA": {
"localhost": {
"type": "ToRRouter",
"mac": "00:11:22:33:dd:5a",
"hostname": "asw.dc",
"bgp_asn": "64850",
"hwsku": "Stone"
}
},
"VLAN": {
"Vlan111": {
"description": "svlan",
"dhcp_servers": [
"10.222.72.116"
],
"vlanid": "111",
"mtu": "9216",
"admin_status": "up"
},
"Vlan777": {
"description": "pvlan",
"dhcp_servers": [
"10.222.72.116"
],
"vlanid": "777",
"mtu": "9216",
"admin_status": "up"
}
},
"DEVICE_NEIGHBOR": {
"Ethernet112": {
"name": "dccsw01.nw",
"port": "Eth18"
},
"Ethernet114": {
"name": "dccsw02.nw",
"port": "Eth18"
},
"Ethernet116": {
"name": "dccsw03.nw",
"port": "Eth18"
},
"Ethernet118": {
"name": "dccsw04.nw",
"port": "Eth18"
}
},
"PORT": {
"Ethernet0": {
"alias": "Eth1/1",
"lanes": "65",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet1": {
"alias": "Eth1/2",
"lanes": "66",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet2": {
"alias": "Eth1/3",
"lanes": "67",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet3": {
"alias": "Eth1/4",
"lanes": "68",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet4": {
"alias": "Eth2/1",
"lanes": "69",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet5": {
"alias": "Eth2/2",
"lanes": "70",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet6": {
"alias": "Eth2/3",
"lanes": "71",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet7": {
"alias": "Eth2/4",
"lanes": "72",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet8": {
"alias": "Eth3/1",
"lanes": "73",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet9": {
"alias": "Eth3/2",
"lanes": "74",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet10": {
"alias": "Eth3/3",
"lanes": "75",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet11": {
"alias": "Eth3/4",
"lanes": "76",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet12": {
"alias": "Eth4/1",
"lanes": "77",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet13": {
"alias": "Eth4/2",
"lanes": "78",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet14": {
"alias": "Eth4/3",
"lanes": "79",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet15": {
"alias": "Eth4/4",
"lanes": "80",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet16": {
"alias": "Eth5/1",
"lanes": "33",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet17": {
"alias": "Eth5/2",
"lanes": "34",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet18": {
"alias": "Eth5/3",
"lanes": "35",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet19": {
"alias": "Eth5/4",
"lanes": "36",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet20": {
"alias": "Eth6/1",
"lanes": "37",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet21": {
"alias": "Eth6/2",
"lanes": "38",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet22": {
"alias": "Eth6/3",
"lanes": "39",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet23": {
"alias": "Eth6/4",
"lanes": "40",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet24": {
"alias": "Eth7/1",
"lanes": "41",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet25": {
"alias": "Eth7/2",
"lanes": "42",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet26": {
"alias": "Eth7/3",
"lanes": "43",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet27": {
"alias": "Eth7/4",
"lanes": "44",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet28": {
"alias": "Eth8/1",
"lanes": "45",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet29": {
"alias": "Eth8/2",
"lanes": "46",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet30": {
"alias": "Eth8/3",
"lanes": "47",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet31": {
"alias": "Eth8/4",
"lanes": "48",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet32": {
"alias": "Eth9/1",
"lanes": "49",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet33": {
"alias": "Eth9/2",
"lanes": "50",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet34": {
"alias": "Eth9/3",
"lanes": "51",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet35": {
"alias": "Eth9/4",
"lanes": "52",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet36": {
"alias": "Eth10/1",
"lanes": "53",
"description": "",
"speed": "11100",
"admin_status": "up"
},
"Ethernet112": {
"alias": "Eth29/1",
"lanes": "113,114",
"description": "50G|dccsw01.nw|Eth18",
"fec": "fc",
"speed": "11100",
"admin_status": "up"
}
},
"ACL_TABLE": {
"V4-ACL-TABLE": {
"type": "L3",
"policy_desc": "V4-ACL-TABLE",
"ports": [
"Ethernet26",
"Ethernet27",
"Ethernet24"
],
"stage": "INGRESS",
"services": ["SNMP", "SSH"]
},
"V6-ACL-TBLE": {
"type": "L3V6",
"policy_desc": "V6-ACL-TBLE",
"ports": [
"Ethernet14",
"Ethernet15",
"Ethernet23",
"Ethernet30",
"Ethernet31",
"Ethernet18",
"Ethernet19",
"Ethernet25",
"Ethernet24"
]
}
},
"INTERFACE": {
"Ethernet112": {},
"Ethernet14": {},
"Ethernet16": {},
"Ethernet18": {},
"Ethernet112|2a04:5555:40:a709::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet112|10.184.228.211/31": {
"scope": "global",
"family": "IPv4"
},
"Ethernet14|2a04:5555:40:a749::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet14|10.184.229.211/31": {
"scope": "global",
"family": "IPv4"
},
"Ethernet16|2a04:5555:40:a789::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet16|10.184.230.211/31": {
"scope": "global",
"family": "IPv4"
},
"Ethernet18|2a04:5555:40:a7c9::2/126": {
"scope": "global",
"family": "IPv6"
},
"Ethernet18|10.184.231.211/31": {
"scope": "global",
"family": "IPv4"
}
},
"VLAN_MEMBER": {
"Vlan111|Ethernet0": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet1": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet2": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet3": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet4": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet5": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet6": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet29": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet30": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet31": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet32": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet33": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet34": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet35": {
"tagging_mode": "untagged"
},
"Vlan111|Ethernet36": {
"tagging_mode": "untagged"
}
},
"LOOPBACK_INTERFACE": {
"Loopback0": {},
"Loopback0|2a04:5555:40:4::4e9/128": {
"scope": "global",
"family": "IPv6"
},
"Loopback0|10.184.8.233/32": {
"scope": "global",
"family": "IPv4"
}
},
"BREAKOUT_CFG": {
"Ethernet0": {
"brkout_mode": "1x100G[40G]"
},
"Ethernet4": {
"brkout_mode": "4x25G[10G]"
},
"Ethernet8": {
"brkout_mode": "1x100G[40G]"
}
},
"VERSIONS": {
"DATABASE": {
"VERSION": "version_1_0_3"
}
},
"FLEX_COUNTER_TABLE": {
"PFCWD": {
"FLEX_COUNTER_STATUS": "enable"
},
"PG_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_RATES": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_BUFFER_DROP": {
"FLEX_COUNTER_STATUS": "enable"
},
"BUFFER_POOL_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"DEBUG_COUNTER": {
"FLEX_COUNTER_STATUS": "enable"
}
},
"CRM": {
"Config": {
"acl_counter_high_threshold": "85",
"acl_counter_low_threshold": "70",
"acl_counter_threshold_type": "percentage",
"ipv6_neighbor_high_threshold": "67",
"ipv6_neighbor_low_threshold": "56",
"ipv6_neighbor_threshold_type": "percentage",
"nexthop_group_high_threshold": "67",
"nexthop_group_low_threshold": "56",
"nexthop_group_threshold_type": "percentage",
"snat_entry_threshold_type": "percentage",
"snat_entry_low_threshold": "70",
"snat_entry_high_threshold": "85",
"dnat_entry_threshold_type": "percentage",
"dnat_entry_low_threshold": "70",
"dnat_entry_high_threshold": "85",
"ipmc_entry_threshold_type": "percentage",
"ipmc_entry_low_threshold": "70",
"ipmc_entry_high_threshold": "85",
"polling_interval": "0"
}
}
},
"SAMPLE_CONFIG_DB_JSON_1": {
"FLEX_COUNTER_TABLE": {
"PFCWD": {
"FLEX_COUNTER_STATUS": "enable"
},
"PG_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
}
},
"CRM": {
"Config": {
"acl_counter_high_threshold": "85",
"acl_counter_low_threshold": "70",
"acl_counter_threshold_type": "percentage",
"polling_interval": "0"
}
},
"UNKNOWN_TABLE": {
"Error": "This Table is for testing, This Table does not have YANG models."
}
},
"BREAKOUT_CFG_CORRECT_MODES": {
"sonic-breakout_cfg:sonic-breakout_cfg": {
"sonic-breakout_cfg:BREAKOUT_CFG": {
@ -2023,6 +1299,7 @@
}
}
},
"BREAKOUT_CFG_INCORRECT_MODES": {
"sonic-breakout_cfg:sonic-breakout_cfg": {
"sonic-breakout_cfg:BREAKOUT_CFG": {
@ -2044,3 +1321,4 @@
}
}
}