This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/src/sonic-yang-models/tests/files/sample_config_db.json
Vadym Hlushko 6bcea45862
[DPB][YANG] extended yang-model - added 'buffer_model' field, added test cases (#6464)
- Why I did it
The fix for the issue [DPB][YANG] sonic-device_metadata.yang is not aligned with newest changes in CONFIG_DB

- How I did it
CONFIG_DB was extended with the field buffer_model - added representation of this field inside the sonic-device_metadata.yang

- How to verify it
Run the command config interface breakout <interface> <breakout_mode>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
2021-04-22 10:00:36 +03:00

707 lines
22 KiB
JSON

{
"SAMPLE_CONFIG_DB_JSON": {
"VRF": {
"Vrf_blue": {
}
},
"PORTCHANNEL": {
"PortChannel0003": {
"admin_status": "up",
"min_links": "1",
"members": [
"Ethernet1"
],
"mtu": "9100"
},
"PortChannel0004": {
"admin_status": "up",
"min_links": "1",
"members": [
"Ethernet2"
],
"mtu": "9100"
}
},
"PORTCHANNEL_INTERFACE": {
"PortChannel0003": {},
"PortChannel0004": {"vrf_name": "Vrf_blue"}
},
"PORTCHANNEL_MEMBER": {
"PortChannel0003|Ethernet1": {},
"PortChannel0004|Ethernet2": {}
},
"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",
"buffer_model": "dynamic"
}
},
"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."
}
}
}