From fdb9ba4eeee163109db542ccdc095dc52e677611 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Tue, 2 Apr 2024 21:00:00 +0000 Subject: [PATCH] swig: add missing dbGroupType::POWER_DOMAIN Signed-off-by: Darryl Miles --- src/odb/src/swig/python/dbenums.i | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/odb/src/swig/python/dbenums.i b/src/odb/src/swig/python/dbenums.i index 611ece2fd7..507c14d1e3 100644 --- a/src/odb/src/swig/python/dbenums.i +++ b/src/odb/src/swig/python/dbenums.i @@ -1370,6 +1370,8 @@ obj = PyString_FromString("PHYSICAL_CLUSTER"); } else if ($1.getValue() == odb::dbGroupType::VOLTAGE_DOMAIN) { obj = PyString_FromString("VOLTAGE_DOMAIN"); + } else if ($1.getValue() == odb::dbGroupType::POWER_DOMAIN) { + obj = PyString_FromString("POWER_DOMAIN"); } else { SWIG_exception(SWIG_ValueError, "Unknown group type"); } @@ -1381,6 +1383,8 @@ $1 = odb::dbGroupType::PHYSICAL_CLUSTER; } else if (strcasecmp(str, "VOLTAGE_DOMAIN") == 0) { $1 = odb::dbGroupType::VOLTAGE_DOMAIN; + } else if (strcasecmp(str, "POWER_DOMAIN") == 0) { + $1 = odb::dbGroupType::POWER_DOMAIN; } else { SWIG_exception(SWIG_ValueError, "Unknown group type"); } @@ -1393,6 +1397,8 @@ found = true; } else if (strcasecmp(str, "VOLTAGE_DOMAIN") == 0) { found = true; + } else if (strcasecmp(str, "POWER_DOMAIN") == 0) { + found = true; } } if (found) {