Commit 7577721a authored by Pedro Duarte's avatar Pedro Duarte
Browse files

Fix boolean enum conversion to prevent YANG validation errors - keeps string booleans as strings

parent 27ad098e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -296,8 +296,8 @@ class GnmiSessionHandler:
                                obj[k] = 'UP' if v_lower == 'true' else 'DOWN'
                                changed += 1
                            else:
                                # For other fields, convert string boolean to actual boolean
                                obj[k] = (v_lower == 'true')
                                # For other fields, keep as string enum to avoid YANG validation errors
                                # Don't convert to boolean - keep as "true"/"false" strings
                                changed += 1
        elif isinstance(obj, list):
            for item in obj: