Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyperglass.plugins._builtin.bgp_route_arista:parse_arista:63 - 4 validation errors for AristaBGPTable extCommunityListRaw #305

Open
matthewenger opened this issue Dec 7, 2024 · 0 comments · May be fixed by #306
Assignees
Labels
possible-bug Something isn't working

Comments

@matthewenger
Copy link

matthewenger commented Dec 7, 2024

Deployment Type

Docker

Version

v2.0.4

Steps to Reproduce

Running bgp route on arista device:

show ip bgp 8.8.8.8 vrf internet | json
{
    "vrfs": {
        "internet": {
            "vrf": "internet",
            "routerId": "103.51.112.191",
            "asn": "134090",
            "bgpRouteEntries": {
                "8.8.8.0/24": {
                    "address": "8.8.8.0",
                    "maskLength": 24,
                    "bgpRoutePaths": [
                        {
                            "nextHop": "172.31.1.64",
                            "reasonNotBestpath": "noReason",
                            "localPreference": 79,
                            "weight": 0,
                            "tag": 0,
                            "med": 0,
                            "routeType": {
                                "stale": false,
                                "valid": true,
                                "suppressed": false,
                                "active": true,
                                "backup": false,
                                "ecmpHead": false,
                                "ecmp": false,
                                "ecmpContributor": false,
                                "atomicAggregator": false,
                                "queued": false,
                                "luRoute": false,
                                "sixPeRoute": false,
                                "ucmp": false,
                                "origin": "Igp"
                            },
                            "peerEntry": {
                                "peerAddr": "172.31.0.253",
                                "peerRouterId": "172.31.0.253"
                            },
                            "asPathEntry": {
                                "asPathType": "Internal",
                                "asPath": "15169"
                            },
                            "routeDetail": {
                                "nextHopVrfName": "",
                                "communityList": [
                                    "1111:3",
                                    "1111:54000",
                                    "1111:54300",
                                    "1111:54302"
                                ],
                                "extCommunityList": [],
                                "extCommunityListRaw": [],
                                "largeCommunityList": [],
                                "rxSafi": "Unicast",
                                "origin": "Igp",
                                "originator": "103.51.112.105",
                                "clusterList": "172.31.0.253 ",
                                "recvdFromRRClient": false,
                                "recmpEligible": false,
                                "tunnelRibEligible": false,
                                "igpMetric": 11
                            },
                            "timestamp": 1731956344
                        },
                        {
                            "nextHop": "172.31.1.64",
                            "reasonNotBestpath": "noReason",
                            "localPreference": 79,
                            "weight": 0,
                            "tag": 0,
                            "med": 0,
                            "routeType": {
                                "stale": false,
                                "valid": true,
                                "suppressed": false,
                                "active": false,
                                "backup": false,
                                "ecmpHead": false,
                                "ecmp": false,
                                "ecmpContributor": false,
                                "atomicAggregator": false,
                                "queued": false,
                                "luRoute": false,
                                "sixPeRoute": false,
                                "ucmp": false,
                                "origin": "Igp"
                            },
                            "peerEntry": {
                                "peerAddr": "172.31.0.254",
                                "peerRouterId": "172.31.0.254"
                            },
                            "asPathEntry": {
                                "asPathType": "Internal",
                                "asPath": "15169"
                            },
                            "routeDetail": {
                                "nextHopVrfName": "",
                                "communityList": [
                                    "1111:3",
                                    "1111:54000",
                                    "1111:54300",
                                    "1111:54302"
                                ],
                                "extCommunityList": [],
                                "extCommunityListRaw": [],
                                "largeCommunityList": [],
                                "rxSafi": "Unicast",
                                "origin": "Igp",
                                "originator": "103.51.112.105",
                                "clusterList": "172.31.0.254 ",
                                "recvdFromRRClient": false,
                                "recmpEligible": false,
                                "tunnelRibEligible": false,
                                "igpMetric": 11
                            },
                            "timestamp": 1731956344
                        },
                        {
                            "nextHop": "223.165.7.126",
                            "reasonNotBestpath": "noReason",
                            "localPreference": 41,
                            "weight": 0,
                            "tag": 0,
                            "med": 0,
                            "routeType": {
                                "stale": false,
                                "valid": true,
                                "suppressed": false,
                                "active": false,
                                "backup": false,
                                "ecmpHead": false,
                                "ecmp": false,
                                "ecmpContributor": false,
                                "atomicAggregator": false,
                                "queued": false,
                                "luRoute": false,
                                "sixPeRoute": false,
                                "ucmp": false,
                                "origin": "Igp"
                            },
                            "peerEntry": {
                                "peerAddr": "223.165.7.126",
                                "peerRouterId": "206.148.24.145"
                            },
                            "asPathEntry": {
                                "asPathType": "External",
                                "asPath": "137409 15169"
                            },
                            "routeDetail": {
                                "nextHopVrfName": "",
                                "communityList": [
                                    "1111:4",
                                    "1111:54000",
                                    "1111:54300",
                                    "1111:54302",
                                    "7578:200",
                                    "7578:15169"
                                ],
                                "extCommunityList": [
                                    "Route-Target-AS:7578:10",
                                    "Route-Target-AS:7578:24",
                                    "Route-Target-AS:7578:55",
                                    "Route-Origin-AS:7578:200"
                                ],
                                "extCommunityListRaw": [
                                    595497215590410,
                                    595497215590424,
                                    595497215590455,
                                    876972192301256
                                ],
                                "largeCommunityList": [],
                                "rxSafi": "Unicast",
                                "origin": "Igp",
                                "recvdFromRRClient": false,
                                "recmpEligible": false,
                                "tunnelRibEligible": false,
                                "igpMetric": 0
                            },
                            "timestamp": 1731957084
                        }
                    ],
                    "totalPaths": 3
                }
            }
        }
    }
}

Expected Behavior

It should display the table of the bgp results.

Observed Behavior

Something went wrong. is displayed

Configuration

org_name: Leap Telecommunications Pty Ltd
plugins: []
primary_asn: 134090
request_timeout: 90
site_description: Leap Telecommunications Pty Ltd Looking Glass
site_title: Leap Telecommunications Pty Ltd User

Devices

devices:
  - name: Equinix ME1
    address: xxx.xxx.xxx.xxx
    credential:
      username: xxx
      password: xxx
    platform: arista_eos
    attrs:
      source4: 103.51.112.190
      source6: 2402:2c80:1::e
  - name: NextDC M1
    address: xxx.xxx.xxx.xxx
    credential:
      username: xxx
      password: xxx
    platform: arista_eos
    attrs:
      source4: 103.51.112.191
      source6: 2402:2c80:1::7

Logs

hyperglass-1  | 2024-12-07 12:29:54.442 | DEBUG    | hyperglass.plugins._manager:execute:186 - Output Plugin Starting Value
hyperglass-1  | 2024-12-07 12:29:54.443 | DEBUG    | hyperglass.plugins._builtin.bgp_route_arista:parse_arista:37 - Pre-parsed data
hyperglass-1  | 2024-12-07 12:29:54.443 | CRITICAL | hyperglass.plugins._builtin.bgp_route_arista:parse_arista:63 - 4 validation errors for AristaBGPTable
hyperglass-1  | bgpRouteEntries.`8.8.8.0/24`.bgpRoutePaths.2.routeDetail.extCommunityListRaw.0
hyperglass-1  |   Input should be a valid string [type=string_type, input_value=595497215590410, input_type=int]
hyperglass-1  |     For further information visit https://errors.pydantic.dev/2.10/v/string_type
hyperglass-1  | bgpRouteEntries.`8.8.8.0/24`.bgpRoutePaths.2.routeDetail.extCommunityListRaw.1
hyperglass-1  |   Input should be a valid string [type=string_type, input_value=595497215590424, input_type=int]
hyperglass-1  |     For further information visit https://errors.pydantic.dev/2.10/v/string_type
hyperglass-1  | bgpRouteEntries.`8.8.8.0/24`.bgpRoutePaths.2.routeDetail.extCommunityListRaw.2
hyperglass-1  |   Input should be a valid string [type=string_type, input_value=595497215590455, input_type=int]
hyperglass-1  |     For further information visit https://errors.pydantic.dev/2.10/v/string_type
hyperglass-1  | bgpRouteEntries.`8.8.8.0/24`.bgpRoutePaths.2.routeDetail.extCommunityListRaw.3
hyperglass-1  |   Input should be a valid string [type=string_type, input_value=876972192301256, input_type=int]
hyperglass-1  |     For further information visit https://errors.pydantic.dev/2.10/v/string_type
hyperglass-1  | 2024-12-07 12:29:54.443 | CRITICAL | hyperglass.api.error_handlers:default_handler:48 - Error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible-bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants