Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 687 Bytes

check_default_route.md

File metadata and controls

30 lines (24 loc) · 687 Bytes

check_default_route

Overview

Provides the status of the default route

Examples

def test_fun(duthosts, rand_one_dut_hostname):
    duthost = duthosts[rand_one_dut_hostname]

    ipv4_route_status = duthost.check_default_route(ipv6=False)

Arguments

  • ipv4 - Whether or not to check ipv4 route
    • Required: False
    • Type: Boolean
    • Default: True
  • ipv6 - Whether or not to check ipv6 route
    • Required: False
    • Type: Boolean
    • Default: True

Expected Output

True if default route is accesible, False otherwise.