From 7d41dbf4bf69c3fa82d001f4ed0215a6d1b73105 Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Wed, 8 Dec 2021 17:14:59 -0700 Subject: [PATCH] Fixes #178: Set MED to 0 on Arista routes if none is specified --- hyperglass/models/parsing/arista_eos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperglass/models/parsing/arista_eos.py b/hyperglass/models/parsing/arista_eos.py index e2a6221..16fae0b 100644 --- a/hyperglass/models/parsing/arista_eos.py +++ b/hyperglass/models/parsing/arista_eos.py @@ -73,7 +73,7 @@ class AristaRoutePath(_AristaBase): """Validation model for Arista bgpRoutePaths.""" as_path_entry: AristaAsPathEntry - med: int + med: int = 0 local_preference: int weight: int peer_entry: AristaPeerEntry