From 5767adb230bab41d9d058d42b2f0882856642a64 Mon Sep 17 00:00:00 2001 From: lou lecrivain Date: Tue, 23 Jul 2024 15:50:34 +0200 Subject: [PATCH] add metric test --- cosmo/tests/test_case_vrf_staticroute.yaml | 2 +- cosmo/tests/test_serializer.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cosmo/tests/test_case_vrf_staticroute.yaml b/cosmo/tests/test_case_vrf_staticroute.yaml index 1a78e88..2c60c08 100644 --- a/cosmo/tests/test_case_vrf_staticroute.yaml +++ b/cosmo/tests/test_case_vrf_staticroute.yaml @@ -120,7 +120,7 @@ device_list: - interface: name: et-0/0/2.0 next_hop: null - metric: null + metric: 100 prefix: family: value: 6 diff --git a/cosmo/tests/test_serializer.py b/cosmo/tests/test_serializer.py index 723b049..75894c2 100644 --- a/cosmo/tests/test_serializer.py +++ b/cosmo/tests/test_serializer.py @@ -176,6 +176,7 @@ def test_router_vrf_rib(): assert 'next_hop' in rib['L3VPN-TEST.inet6.0']['static']['fd98::1/128'] assert rib['L3VPN-TEST.inet.0']['static']['10.114.23.36/32']['next_hop'] == '10.30.0.154' assert rib['L3VPN-TEST.inet6.0']['static']['fd98::1/128']['next_hop'] == 'et-0/0/2.0' + assert rib['L3VPN-TEST.inet6.0']['static']['fd98::1/128']['metric'] == 100 def test_router_case_mpls_evpn():