Last active
August 2, 2023 14:24
-
-
Save titom73/0897ab8ea8de9dd990c7f3a1916ca5bc to your computer and use it in GitHub Desktop.
Traceback PR 315
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
anta.tests.routing: | |
bgp: | |
- VerifyBGPIPv4UnicastCount: | |
vrfs: | |
default: des |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUG [anta.device] Refreshing device spine01 device.py:270 | |
DEBUG [httpx._client] HTTP Request: POST https://192.168.0.10/command-api "HTTP/1.1 200 OK" _client.py:1734 | |
ERROR [anta.tests.routing.bgp.VerifyBGPIPv4UnicastCount] anta.tests.routing.bgp.VerifyBGPIPv4UnicastCount: inputs are not valid: 1 validation error for Input models.py:289 | |
vrfs.default | |
Input should be a valid integer, unable to parse string as an integer | |
For further information visit https://errors.pydantic.dev/2.1.2/v/int_parsing | |
ERROR [anta.tests.routing.bgp.VerifyBGPIPv4UnicastCount] Exception in anta.tests.routing.bgp.VerifyBGPIPv4UnicastCount.render() misc.py:32 | |
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | |
│ /home/tom/Projects/arista/anta/anta/models.py:313 in _init_commands │ | |
│ │ | |
│ 310 │ │ │ │ │ self.instance_commands.append(deepcopy(cmd)) ╭───────────────────────────────────────────────────────── locals ──────────────────────────────────────────────────────────╮ │ | |
│ 311 │ │ │ │ elif isinstance(cmd, AntaTemplate): │ cmd = AntaTemplate(template='show bgp ipv4 unicast summary vrf {vrf}', version='latest', revision=None, ofmt='json') │ │ | |
│ 312 │ │ │ │ │ try: │ e = AttributeError("'VerifyBGPIPv4UnicastCount' object has no attribute 'inputs'") │ │ | |
│ ❱ 313 │ │ │ │ │ │ self.instance_commands.extend(self.render(cmd)) │ eos_data = None │ │ | |
│ 314 │ │ │ │ │ except AntaTemplateRenderError as e: │ message = 'Exception in anta.tests.routing.bgp.VerifyBGPIPv4UnicastCount.render()' │ │ | |
│ 315 │ │ │ │ │ │ self.result.is_error(f"Cannot render template {{{e.template}}}") │ self = <anta.tests.routing.bgp.VerifyBGPIPv4UnicastCount object at 0x7fdf1c568a60> │ │ | |
│ 316 │ │ │ │ │ │ return ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ | |
│ │ | |
│ /home/tom/Projects/arista/anta/anta/tests/routing/bgp.py:100 in render │ | |
│ │ | |
│ 97 │ ╭───────────────────────────────────────────────────────── locals ──────────────────────────────────────────────────────────╮ │ | |
│ 98 │ def render(self, template: AntaTemplate) -> list[AntaCommand]: │ self = <anta.tests.routing.bgp.VerifyBGPIPv4UnicastCount object at 0x7fdf1c568a60> │ │ | |
│ 99 │ │ """Render VerifyBGPIPv4UnicastCount template""" │ template = AntaTemplate(template='show bgp ipv4 unicast summary vrf {vrf}', version='latest', revision=None, ofmt='json') │ │ | |
│ ❱ 100 │ │ return [template.render({"vrf": vrf}) for vrf in self.inputs.vrfs] ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ | |
│ 101 │ │ | |
│ 102 │ @check_bgp_family_enable("ipv4") │ | |
│ 103 │ @AntaTest.anta_test │ | |
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ | |
AttributeError: 'VerifyBGPIPv4UnicastCount' object has no attribute 'inputs' | |
INFO [anta.runner] Running ANTA tests... runner.py:61 | |
DEBUG [anta.runner] [TestResult(name='spine01', test='VerifyBGPIPv4UnicastCount', categories=['routing', 'bgp'], description='Verifies all IPv4 unicast BGP sessions are established and all their BGP messages queues are empty and the actual number of BGP IPv4 unicast neighbors is the one we expect.', runner.py:63 | |
result='error', messages=["1 validation error for Input\nvrfs.default\n Input should be a valid integer, unable to parse string as an integer \n For further information visit https://errors.pydantic.dev/2.1.2/v/int_parsing", "Exception in | |
anta.tests.routing.bgp.VerifyBGPIPv4UnicastCount.render(): AttributeError ('VerifyBGPIPv4UnicastCount' object has no attribute 'inputs')"], custom_field=None)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment