Skip to content
Snippets Groups Projects
Commit 66ac933a authored by Karel van Klink's avatar Karel van Klink :smiley_cat: Committed by Neda Moeini
Browse files

Update method names in router validation

parent 5c74efe8
No related branches found
No related tags found
1 merge request!139Feature/add validation workflows
...@@ -36,7 +36,7 @@ def verify_ipam_loopback(subscription: Router) -> None: ...@@ -36,7 +36,7 @@ def verify_ipam_loopback(subscription: Router) -> None:
@step("Verify correct Netbox entry") @step("Verify correct Netbox entry")
def verify_netbox_entry(subscription: Router) -> None: def check_netbox_entry_exists(subscription: Router) -> None:
"""Validate the Netbox entry for a Router. """Validate the Netbox entry for a Router.
This will only ensure existence of the node itself in Netbox. Validation of separate interfaces takes places in This will only ensure existence of the node itself in Netbox. Validation of separate interfaces takes places in
...@@ -48,7 +48,7 @@ def verify_netbox_entry(subscription: Router) -> None: ...@@ -48,7 +48,7 @@ def verify_netbox_entry(subscription: Router) -> None:
@step("Verify correct LibreNMS entry") @step("Verify correct LibreNMS entry")
def verify_librenms_entry(subscription: Router) -> None: def check_librenms_entry_exists(subscription: Router) -> None:
"""Validate the LibreNMS entry for a Router. """Validate the LibreNMS entry for a Router.
Raises an HTTP error 404 when the device is not present in LibreNMS. Raises an HTTP error 404 when the device is not present in LibreNMS.
...@@ -100,8 +100,8 @@ def validate_router() -> StepList: ...@@ -100,8 +100,8 @@ def validate_router() -> StepList:
>> is_juniper_router(done) >> is_juniper_router(done)
>> unsync >> unsync
>> verify_ipam_loopback >> verify_ipam_loopback
>> verify_netbox_entry >> check_netbox_entry_exists
>> verify_librenms_entry >> check_librenms_entry_exists
>> anonymous_lso_interaction(verify_base_config) >> anonymous_lso_interaction(verify_base_config)
>> anonymous_lso_interaction(validate_ibgp_mesh_config) >> anonymous_lso_interaction(validate_ibgp_mesh_config)
>> resync >> resync
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment