@staticmethod<EOL><INDENT>def _get_table_rows(parent_table, table_name, row_name):<DEDENT>
if parent_table is None:<EOL><INDENT>return []<EOL><DEDENT>_table = parent_table.get(table_name)<EOL>_table_rows = []<EOL>if isinstance(_table, list):<EOL><INDENT>_table_rows = [_table_row.get(row_name) for _table_row in _table]<EOL><DEDENT>elif isinstance(_table, dict):<EOL><INDENT>_table_rows = _table.get(row_name)<EOL><DEDENT>if not isinstance(_table_rows, list):<EOL><INDENT>_table_rows = [_table_rows]<EOL><DEDENT>return _table_rows<EOL>
Inconsistent behavior:
{'TABLE_intf': [{'ROW_intf': {
vs
{'TABLE_mac_address': {'ROW_mac_address': [{
vs
{'TABLE_vrf': {'ROW_vrf': {'TABLE_adj': {'ROW_adj': {