Skip to content

Commit

Permalink
Unit tests for rfc2863
Browse files Browse the repository at this point in the history
Signed-off-by: Raphael Tryster <raphaelt@nvidia.com>
  • Loading branch information
raphaelt-nvidia committed May 5, 2021
1 parent 474dbe0 commit da3c648
Show file tree
Hide file tree
Showing 34 changed files with 387 additions and 34 deletions.
11 changes: 8 additions & 3 deletions src/sonic_ax_impl/mibs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def init_sync_d_lag_tables(db_conn):
"""
Helper method. Connects to and initializes LAG interface maps for SyncD-connected MIB(s).
:param db_conn: database connector
:return: tuple(lag_name_if_name_map, if_name_lag_name_map, oid_lag_name_map)
:return: tuple(lag_name_if_name_map, if_name_lag_name_map, oid_lag_name_map, lag_sai_map, sai_lag_map)
"""
# { lag_name (SONiC) -> [ lag_members (if_name) ] }
# ex: { "PortChannel0" : [ "Ethernet0", "Ethernet4" ] }
Expand All @@ -371,6 +371,8 @@ def init_sync_d_lag_tables(db_conn):
oid_lag_name_map = {}
# { lag_name (SONiC) -> lag_oid (SAI) }
lag_sai_map = {}
# { lag_oid (SAI) -> lag_name (SONiC) }
sai_lag_map = {}

db_conn.connect(APPL_DB)

Expand All @@ -381,7 +383,10 @@ def init_sync_d_lag_tables(db_conn):

db_conn.connect(COUNTERS_DB)
lag_sai_map = db_conn.get_all(COUNTERS_DB, "COUNTERS_LAG_NAME_MAP")
lag_sai_map = {name: get_sai_id_key(db_conn.namespace, sai_id.lstrip("oid:0x")) for name, sai_id in lag_sai_map.items()}
for name, sai_id in lag_sai_map.items():
sai_id_key = get_sai_id_key(db_conn.namespace, sai_id.lstrip("oid:0x"))
lag_sai_map[name] = sai_id_key
sai_lag_map[sai_id_key] = name

for lag_entry in lag_entries:
lag_name = lag_entry[len("LAG_TABLE:"):]
Expand All @@ -403,7 +408,7 @@ def member_name_str(val, lag_name):
if idx:
oid_lag_name_map[idx] = if_name

return lag_name_if_name_map, if_name_lag_name_map, oid_lag_name_map, lag_sai_map
return lag_name_if_name_map, if_name_lag_name_map, oid_lag_name_map, lag_sai_map, sai_lag_map

def init_sync_d_queue_tables(db_conn):
"""
Expand Down
2 changes: 1 addition & 1 deletion src/sonic_ax_impl/mibs/ietf/rfc1213.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def update_data(self):
self.lag_name_if_name_map, \
self.if_name_lag_name_map, \
self.oid_lag_name_map, \
self.lag_sai_map = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_lag_tables, self.db_conn)
self.lag_sai_map, _ = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_lag_tables, self.db_conn)

self.if_range = sorted(list(self.oid_name_map.keys()) +
list(self.oid_lag_name_map.keys()) +
Expand Down
33 changes: 23 additions & 10 deletions src/sonic_ax_impl/mibs/ietf/rfc2863.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from sonic_ax_impl import mibs
from ax_interface.mib import MIBMeta, MIBUpdater, ValueType, SubtreeMIBEntry, OverlayAdpaterMIBEntry, OidMIBEntry, MIBEntry
from sonic_ax_impl.mibs import Namespace
from os import stat_result

@unique
class DbTables32(int, Enum):
Expand Down Expand Up @@ -49,7 +50,6 @@ class DbTables(int, Enum):
"""
Maps database tables names to SNMP sub-identifiers.
https://tools.ietf.org/html/rfc1213#section-6.4
REDIS_TABLE_NAME = (RFC1213 OID NUMBER)
"""

Expand Down Expand Up @@ -95,7 +95,6 @@ def __init__(self):
self.vlan_oid_name_map = {}
self.vlan_name_map = {}
self.rif_port_map = {}

self.if_counters = {}
self.if_range = []
self.if_name_map = {}
Expand All @@ -117,7 +116,7 @@ def reinit_data(self):

self.lag_name_if_name_map, \
self.if_name_lag_name_map, \
self.oid_lag_name_map, _ = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_lag_tables, self.db_conn)
self.oid_lag_name_map, _, _ = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_lag_tables, self.db_conn)
"""
db_conn - will have db_conn to all namespace DBs and
global db. First db in the list is global db.
Expand Down Expand Up @@ -153,7 +152,7 @@ def update_data(self):
self.lag_name_if_name_map, \
self.if_name_lag_name_map, \
self.oid_lag_name_map, \
self.lag_sai_map = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_lag_tables, self.db_conn)
self.lag_sai_map, _ = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_lag_tables, self.db_conn)

self.if_range = sorted(list(self.oid_name_map.keys()) +
list(self.oid_lag_name_map.keys()) +
Expand Down Expand Up @@ -191,14 +190,16 @@ def interface_name(self, sub_id):
return

if oid in self.oid_lag_name_map:
return self.oid_lag_name_map[oid]
result = self.oid_lag_name_map[oid]
elif oid in self.mgmt_oid_name_map:
return self.mgmt_alias_map[self.mgmt_oid_name_map[oid]]
result = self.mgmt_alias_map[self.mgmt_oid_name_map[oid]]
elif oid in self.vlan_oid_name_map:
return self.vlan_oid_name_map[oid]

return self.if_alias_map[self.oid_name_map[oid]]
result = self.vlan_oid_name_map[oid]
else:
result = self.if_alias_map[self.oid_name_map[oid]]

return result

def interface_alias(self, sub_id):
"""
ifAlias specific - this is not the "Alias map".
Expand All @@ -210,7 +211,19 @@ def interface_alias(self, sub_id):
if not entry:
return

return entry.get("description", "")
result = entry.get("description", "")

if not result:
#RFC2863 tables don't have descriptions for LAG, vlan & mgmt; take from RFC1213
oid = self.get_oid(sub_id)
if oid in self.oid_lag_name_map:
result = self.oid_lag_name_map[oid]
elif oid in self.mgmt_oid_name_map:
result = self.mgmt_alias_map[self.mgmt_oid_name_map[oid]]
elif oid in self.vlan_oid_name_map:
result = self.vlan_oid_name_map[oid]

return result

def get_counter32(self, sub_id, table_name):
oid = self.get_oid(sub_id)
Expand Down
2 changes: 1 addition & 1 deletion src/sonic_ax_impl/mibs/ietf/rfc4363.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def reinit_data(self):
self.lag_name_if_name_map, \
self.if_name_lag_name_map, \
self.oid_lag_name_map, \
self.sai_lag_map = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_lag_tables, self.db_conn)
_, self.sai_lag_map = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_lag_tables, self.db_conn)

self.if_bpid_map = Namespace.dbs_get_bridge_port_map(self.db_conn, mibs.ASIC_DB)
self.bvid_vlan_map.clear()
Expand Down
1 change: 0 additions & 1 deletion src/sonic_ax_impl/mibs/vendor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,4 @@ def update_data(self):

logger.debug('Updating CPU/Mem Utilization with: {}% / {}%'.format(cpu_util, self.get_memutil()))


sys_util_h = SystemUtilizationHandler()
2 changes: 1 addition & 1 deletion src/sonic_ax_impl/mibs/vendor/cisco/ciscoPfcExtMIB.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def update_data(self):

self.lag_name_if_name_map, \
self.if_name_lag_name_map, \
self.oid_lag_name_map, _ = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_lag_tables, self.db_conn)
self.oid_lag_name_map, _, _ = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_lag_tables, self.db_conn)

self.if_range = sorted(list(self.oid_name_map.keys()) + list(self.oid_lag_name_map.keys()))
self.if_range = [(i,) for i in self.if_range]
Expand Down
Empty file modified tests/__init__.py
100644 → 100755
Empty file.
13 changes: 13 additions & 0 deletions tests/mock_tables/appl_db.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,9 @@
"LAG_MEMBER_TABLE:PortChannel04:Ethernet124": {
"status": "enabled"
},
"LAG_MEMBER_TABLE:PortChannel101:Ethernet128": {
"status": "enabled"
},
"LAG_TABLE:PortChannel01": {
"admin_status": "up",
"oper_status": "up",
Expand All @@ -672,11 +675,21 @@
"oper_status": "up",
"mtu": "9216"
},
"LAG_TABLE:PortChannel101": {
"admin_status": "up",
"oper_status": "up",
"mtu": "9216"
},
"LAG_TABLE:PortChannel_Temp": {
"admin_status": "up",
"oper_status": "up",
"mtu": "9216"
},
"VLAN_TABLE:Vlan1000": {
"admin_status": "up",
"hostif_name": "",
"mtu": "9216"
},
"INTF_TABLE:lo:10.1.0.32/32": {
"scope": "global",
"family": "IPv4"
Expand Down
5 changes: 5 additions & 0 deletions tests/mock_tables/asic0/appl_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
"oper_status": "up",
"mtu": "9216"
},
"VLAN_TABLE:Vlan1000": {
"admin_status": "up",
"hostif_name": "",
"mtu": "9216"
},
"INTF_TABLE:lo:10.1.0.32/32": {
"scope": "global",
"family": "IPv4"
Expand Down
5 changes: 5 additions & 0 deletions tests/mock_tables/asic2/appl_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@
"oper_status": "up",
"mtu": "9216"
},
"VLAN_TABLE:Vlan1000": {
"admin_status": "up",
"hostif_name": "",
"mtu": "9216"
},
"INTF_TABLE:lo:10.1.0.32/32": {
"scope": "global",
"family": "IPv4"
Expand Down
54 changes: 45 additions & 9 deletions tests/mock_tables/asic_db.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,51 @@
"SAI_ROUTER_INTERFACE_ATTR_TYPE": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"SAI_ROUTER_INTERFACE_ATTR_PORT_ID": "oid:0x2000000000003"
},
"ASIC_STATE:SAI_OBJECT_TYPE_BRIDGE_PORT:oid:0x3a000000000a21": {
"SAI_BRIDGE_PORT_ATTR_TYPE": "SAI_BRIDGE_PORT_TYPE_PORT",
"SAI_BRIDGE_PORT_ATTR_PORT_ID": "oid:0x2000000000a14",
"SAI_BRIDGE_PORT_ATTR_ADMIN_STATE": "true"
},
"ASIC_STATE:SAI_OBJECT_TYPE_VLAN:oid:0x26000000000a20": {
"SAI_VLAN_ATTR_VLAN_ID": "102"
},
"ASIC_STATE:SAI_OBJECT_TYPE_VLAN:oid:0x26000000000013": {
"NULL": "NULL"
},
"ASIC_STATE:SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x6000000000015": {
"SAI_ROUTER_INTERFACE_ATTR_TYPE": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"SAI_ROUTER_INTERFACE_ATTR_PORT_ID": "oid:0x1000000000015"
},
"ASIC_STATE:SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x60000000005d0": {
"SAI_ROUTER_INTERFACE_ATTR_TYPE": "SAI_ROUTER_INTERFACE_TYPE_VLAN",
"SAI_ROUTER_INTERFACE_ATTR_VLAN_ID": "oid:0x26000000005d0"
},
"ASIC_STATE:SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x6000000000006": {
"SAI_ROUTER_INTERFACE_ATTR_TYPE": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"SAI_ROUTER_INTERFACE_ATTR_PORT_ID": "oid:0x2000000000006"
},
"ASIC_STATE:SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x6000000000005": {
"SAI_ROUTER_INTERFACE_ATTR_TYPE": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"SAI_ROUTER_INTERFACE_ATTR_PORT_ID": "oid:0x2000000000005"
},
"ASIC_STATE:SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x6000000000004": {
"SAI_ROUTER_INTERFACE_ATTR_TYPE": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"SAI_ROUTER_INTERFACE_ATTR_PORT_ID": "oid:0x2000000000004"
},
"ASIC_STATE:SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x6000000001abc": {
"SAI_ROUTER_INTERFACE_ATTR_OUTER_VLAN_ID": "101",
"SAI_ROUTER_INTERFACE_ATTR_PORT_ID": "oid:0x1000000000017",
"SAI_ROUTER_INTERFACE_ATTR_TYPE": "SAI_ROUTER_INTERFACE_TYPE_SUB_PORT"
},
"ASIC_STATE:SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x6000000001abd": {
"SAI_ROUTER_INTERFACE_ATTR_OUTER_VLAN_ID": "102",
"SAI_ROUTER_INTERFACE_ATTR_PORT_ID": "oid:0x1000000000017",
"SAI_ROUTER_INTERFACE_ATTR_TYPE": "SAI_ROUTER_INTERFACE_TYPE_SUB_PORT"
},
"ASIC_STATE:SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x6000000000003": {
"SAI_ROUTER_INTERFACE_ATTR_TYPE": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"SAI_ROUTER_INTERFACE_ATTR_PORT_ID": "oid:0x2000000000003"
},
"ASIC_STATE:SAI_OBJECT_TYPE_LAG:oid:0x2000000000006": {
"NULL": "NULL"
},
Expand All @@ -70,15 +115,6 @@
"NULL": "NULL"
},
"ASIC_STATE:SAI_OBJECT_TYPE_LAG:oid:0x2000000000003": {
"ASIC_STATE:SAI_OBJECT_TYPE_BRIDGE_PORT:oid:0x3a000000000a21": {
"SAI_BRIDGE_PORT_ATTR_TYPE": "SAI_BRIDGE_PORT_TYPE_PORT",
"SAI_BRIDGE_PORT_ATTR_PORT_ID": "oid:0x2000000000a14",
"SAI_BRIDGE_PORT_ATTR_ADMIN_STATE": "true"
},
"ASIC_STATE:SAI_OBJECT_TYPE_VLAN:oid:0x26000000000a20": {
"SAI_VLAN_ATTR_VLAN_ID": "102"
},
"ASIC_STATE:SAI_OBJECT_TYPE_VLAN:oid:0x26000000000013": {
"NULL": "NULL"
}
}
Empty file modified tests/mock_tables/bgpsummary_ipv4.txt
100644 → 100755
Empty file.
Empty file modified tests/mock_tables/config_db.json
100644 → 100755
Empty file.
105 changes: 104 additions & 1 deletion tests/mock_tables/counters_db.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2281,7 +2281,8 @@
"PortChannel01": "oid:0x2000000000006",
"PortChannel02": "oid:0x2000000000005",
"PortChannel03": "oid:0x2000000000004",
"PortChannel04": "oid:0x2000000000003"
"PortChannel04": "oid:0x2000000000003",
"PortChannel101": "oid:0x2000000000a14"
},
"COUNTERS_RIF_NAME_MAP": {
"Ethernet20": "oid:0x6000000000015",
Expand Down Expand Up @@ -2383,6 +2384,108 @@
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_OCTETS": "0"
},
"COUNTERS_RIF_NAME_MAP": {
"Ethernet20": "oid:0x6000000000015",
"Ethernet8.101": "oid:0x6000000001abc",
"Ethernet8.102": "oid:0x6000000001abd",
"PortChannel01": "oid:0x6000000000006",
"PortChannel02": "oid:0x6000000000005",
"PortChannel03": "oid:0x6000000000004",
"PortChannel04": "oid:0x6000000000003",
"PortChannel101": "oid:0x6000000000002",
"Vlan1000": "oid:0x60000000005d0"
},
"COUNTERS_RIF_TYPE_MAP": {
"oid:0x6000000000015": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"oid:0x6000000001abc": "SAI_ROUTER_INTERFACE_TYPE_SUB_PORT",
"oid:0x6000000001abd": "SAI_ROUTER_INTERFACE_TYPE_SUB_PORT",
"oid:0x6000000000006": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"oid:0x6000000000005": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"oid:0x6000000000004": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"oid:0x6000000000003": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"oid:0x6000000000002": "SAI_ROUTER_INTERFACE_TYPE_PORT",
"oid:0x60000000005d0": "SAI_ROUTER_INTERFACE_TYPE_VLAN"
},
"COUNTERS:oid:0x6000000000015": {
"SAI_ROUTER_INTERFACE_STAT_IN_PACKETS": "10",
"SAI_ROUTER_INTERFACE_STAT_IN_OCTETS": "2048",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_PACKETS": "1",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_OCTETS": "55",
"SAI_ROUTER_INTERFACE_STAT_OUT_PACKETS": "20",
"SAI_ROUTER_INTERFACE_STAT_OUT_OCTETS": "4096",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_PACKETS": "2",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_OCTETS": "110"
},
"COUNTERS:oid:0x60000000005d0": {
"SAI_ROUTER_INTERFACE_STAT_IN_PACKETS": "10",
"SAI_ROUTER_INTERFACE_STAT_IN_OCTETS": "2048",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_PACKETS": "1",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_OCTETS": "55",
"SAI_ROUTER_INTERFACE_STAT_OUT_PACKETS": "20",
"SAI_ROUTER_INTERFACE_STAT_OUT_OCTETS": "4096",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_PACKETS": "2",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_OCTETS": "110"
},
"COUNTERS:oid:0x6000000000006": {
"SAI_ROUTER_INTERFACE_STAT_IN_PACKETS": "6",
"SAI_ROUTER_INTERFACE_STAT_IN_OCTETS": "116",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_PACKETS": "6",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_OCTETS": "226",
"SAI_ROUTER_INTERFACE_STAT_OUT_PACKETS": "12",
"SAI_ROUTER_INTERFACE_STAT_OUT_OCTETS": "212",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_PACKETS": "6",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_OCTETS": "336"
},
"COUNTERS:oid:0x6000000000005": {
"SAI_ROUTER_INTERFACE_STAT_IN_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_IN_OCTETS": "0",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_OCTETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_OCTETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_OCTETS": "0"
},
"COUNTERS:oid:0x6000000000004": {
"SAI_ROUTER_INTERFACE_STAT_IN_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_IN_OCTETS": "0",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_OCTETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_OCTETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_OCTETS": "0"
},
"COUNTERS:oid:0x6000000001abc": {
"SAI_ROUTER_INTERFACE_STAT_IN_PACKETS": "101",
"SAI_ROUTER_INTERFACE_STAT_IN_OCTETS": "101",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_PACKETS": "101",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_OCTETS": "101",
"SAI_ROUTER_INTERFACE_STAT_OUT_PACKETS": "101",
"SAI_ROUTER_INTERFACE_STAT_OUT_OCTETS": "101",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_PACKETS": "101",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_OCTETS": "101"
},
"COUNTERS:oid:0x6000000001abd": {
"SAI_ROUTER_INTERFACE_STAT_IN_PACKETS": "102",
"SAI_ROUTER_INTERFACE_STAT_IN_OCTETS": "102",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_PACKETS": "102",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_OCTETS": "102",
"SAI_ROUTER_INTERFACE_STAT_OUT_PACKETS": "102",
"SAI_ROUTER_INTERFACE_STAT_OUT_OCTETS": "102",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_PACKETS": "102",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_OCTETS": "102"
},
"COUNTERS:oid:0x6000000000003": {
"SAI_ROUTER_INTERFACE_STAT_IN_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_IN_OCTETS": "0",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_IN_ERROR_OCTETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_OCTETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_PACKETS": "0",
"SAI_ROUTER_INTERFACE_STAT_OUT_ERROR_OCTETS": "0"
},
"COUNTERS:oid:0x1000000000009": {
"SAI_PORT_STAT_ETHER_STATS_TX_NO_ERRORS": "0",
"SAI_PORT_STAT_ETHER_STATS_OVERSIZE_PKTS": "0",
Expand Down
Empty file modified tests/mock_tables/database_config.json
100644 → 100755
Empty file.
Empty file modified tests/mock_tables/database_global.json
100644 → 100755
Empty file.
Empty file modified tests/mock_tables/dbconnector.py
100644 → 100755
Empty file.
Empty file modified tests/mock_tables/host_arp.txt
100644 → 100755
Empty file.
Empty file modified tests/mock_tables/multi_asic.py
100644 → 100755
Empty file.
Empty file modified tests/mock_tables/python_arptable.py
100644 → 100755
Empty file.
Empty file modified tests/mock_tables/snmp_overlay_db.json
100644 → 100755
Empty file.
Empty file modified tests/mock_tables/state_db.json
100644 → 100755
Empty file.
Loading

0 comments on commit da3c648

Please sign in to comment.