From 2ed949a7a4283acc07d30b106e2cc51dcbbcc73b Mon Sep 17 00:00:00 2001 From: cooperwinser Date: Mon, 9 Dec 2024 11:53:19 +1100 Subject: [PATCH] Fix: allow integer values in extCommunityListRaw field for Arista BGP parsing --- hyperglass/models/parsing/arista_eos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hyperglass/models/parsing/arista_eos.py b/hyperglass/models/parsing/arista_eos.py index 2b00e01..f2a0174 100644 --- a/hyperglass/models/parsing/arista_eos.py +++ b/hyperglass/models/parsing/arista_eos.py @@ -2,6 +2,7 @@ # Standard Library import typing as t +from typing import Union from datetime import datetime # Third Party @@ -64,7 +65,7 @@ class AristaRouteDetail(_AristaBase): origin: str label_stack: t.List = [] - ext_community_list: t.List[str] = [] + ext_community_list_raw: t.List[Union[str, int]] = [] ext_community_list_raw: t.List[str] = [] community_list: t.List[str] = [] large_community_list: t.List[str] = []