diff --git a/config/config_mgmt.py b/config/config_mgmt.py index c9db79ea90e7..5e35f299ae7b 100644 --- a/config/config_mgmt.py +++ b/config/config_mgmt.py @@ -83,7 +83,7 @@ def __init__(self, source="configDB", debug=False, allowTablesWithoutYang=True): def __del__(self): pass - def tablesWithoutYang(self): + def tablesWithOutYang(self): ''' Return tables loaded in config for which YANG model does not exist. diff --git a/sonic-utilities-tests/config_mgmt_test.py b/sonic-utilities-tests/config_mgmt_test.py index aec7f75e3057..4133ab2194ef 100644 --- a/sonic-utilities-tests/config_mgmt_test.py +++ b/sonic-utilities-tests/config_mgmt_test.py @@ -32,7 +32,7 @@ def test_table_without_yang(self): self.updateConfig(curConfig, unknown) self.writeJson(curConfig, config_mgmt.CONFIG_DB_JSON_FILE) cm = config_mgmt.ConfigMgmt(source=config_mgmt.CONFIG_DB_JSON_FILE) - #assert "unknown_table" in cm.tablesWithoutYang() + assert "unknown_table" in cm.tablesWithOutYang() return def test_search_keys(self):