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

infamy: Refactor xpath handling between restconf and netconf implment… #557

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

mattiaswal
Copy link
Contributor

@mattiaswal mattiaswal commented Aug 12, 2024

Previous xpath may or may not been an xpath, we still called it xpath. Remove the obscure function get_xpath() and instead transform to a URI in restconf.py

This fix issue #490

All tests run with restconf:

o Execution
`-- o 0001-all.yaml
    |-- o 0002-reproducible.py
    |-- o 0003-wait.py
    |-- o 0004-Misc tests
    |   `-- o 0005-operational_all.py
    |-- o 0006-ietf-system
    |   |-- o 0007-hostname.py
    |   |-- o 0008-add_delete_user.py
    |   |-- o 0009-user_admin.py
    |   |-- o 0010-timezone.py
    |   `-- o 0011-timezone_utc_offset.py
    |-- o 0012-ietf-interfaces
    |   |-- o 0013-vlan_ping.py
    |   |-- o 0014-ipv4_address.py
    |   |-- o 0015-ipv6_address.py
    |   |-- o 0016-iface_phys_address.py
    |   |-- o 0017-iface_status.py
    |   `-- o 0018-routing_basic.py
    |-- o 0019-infix-interfaces
    |   |-- o 0020-bridge_basic.py
    |   |-- o 0021-bridge_veth.py
    |   |-- o 0022-dual_bridge.py
    |   |-- o 0023-bridge_vlan.py
    |   |-- o 0024-ipv4_autoconf.py
    |   |-- o 0025-bridge_fwd_sgl_dut.py
    |   |-- o 0026-bridge_fwd_dual_dut.py
    |   |-- o 0027-bridge_vlan_separation.py
    |   |-- o 0028-igmp_basic.py
    |   |-- o 0029-igmp_vlan.py
    |   |-- o 0030-static_multicast_filters.py
    |   `-- o 0031-vlan_qos.py
    |-- o 0032-ietf-routing
    |   |-- o 0033-static_routing.py
    |   |-- o 0034-ospf_basic.py
    |   |-- o 0035-ospf_unnumbered_interface.py
    |   `-- o 0036-ospf_multiarea.py
    |-- o 0037-infix-containers
    |   |-- o 0038-container_basic.py
    |   |-- o 0039-container_bridge.py
    |   |-- o 0040-container_phys.py
    |   `-- o 0041-container_veth.py
    |-- o 0042-infix-dhcp
    |   |-- o 0043-dhcp_basic.py
    |   |-- o 0044-dhcp_router.py
    |   `-- o 0045-dhcp_routes.py
    `-- o 0046-ietf-hardware
        `-- o 0047-usb.py

All tests with netconf:

o Execution
`-- o 0001-all.yaml
    |-- o 0002-reproducible.py
    |-- o 0003-wait.py
    |-- o 0004-Misc tests
    |   `-- o 0005-operational_all.py
    |-- o 0006-ietf-system
    |   |-- o 0007-hostname.py
    |   |-- o 0008-add_delete_user.py
    |   |-- o 0009-user_admin.py
    |   |-- o 0010-timezone.py
    |   `-- o 0011-timezone_utc_offset.py
    |-- o 0012-ietf-interfaces
    |   |-- o 0013-vlan_ping.py
    |   |-- o 0014-ipv4_address.py
    |   |-- o 0015-ipv6_address.py
    |   |-- o 0016-iface_phys_address.py
    |   |-- o 0017-iface_status.py
    |   `-- o 0018-routing_basic.py
    |-- o 0019-infix-interfaces
    |   |-- o 0020-bridge_basic.py
    |   |-- o 0021-bridge_veth.py
    |   |-- o 0022-dual_bridge.py
    |   |-- o 0023-bridge_vlan.py
    |   |-- o 0024-ipv4_autoconf.py
    |   |-- o 0025-bridge_fwd_sgl_dut.py
    |   |-- o 0026-bridge_fwd_dual_dut.py
    |   |-- o 0027-bridge_vlan_separation.py
    |   |-- o 0028-igmp_basic.py
    |   |-- o 0029-igmp_vlan.py
    |   |-- o 0030-static_multicast_filters.py
    |   `-- o 0031-vlan_qos.py
    |-- o 0032-ietf-routing
    |   |-- o 0033-static_routing.py
    |   |-- o 0034-ospf_basic.py
    |   |-- o 0035-ospf_unnumbered_interface.py
    |   `-- o 0036-ospf_multiarea.py
    |-- o 0037-infix-containers
    |   |-- o 0038-container_basic.py
    |   |-- o 0039-container_bridge.py
    |   |-- o 0040-container_phys.py
    |   `-- o 0041-container_veth.py
    |-- o 0042-infix-dhcp
    |   |-- o 0043-dhcp_basic.py
    |   |-- o 0044-dhcp_router.py
    |   `-- o 0045-dhcp_routes.py
    `-- o 0046-ietf-hardware
        `-- o 0047-usb.py

@mattiaswal mattiaswal requested a review from wkz August 12, 2024 20:16
…ation

Previous xpath may or may not been an xpath, we still called it xpath.
Remove the obscure function get_xpath() and instead transform to a
URI in restconf.py

This fix issue #490

Signed-off-by: Mattias Walström <[email protected]>
Copy link
Contributor

@wkz wkz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simply lovely! ✨

@wkz wkz merged commit 60e8b24 into main Aug 16, 2024
4 checks passed
@wkz wkz deleted the refactor-xpath branch August 16, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants