def get_local_as(node, vrf="default"):
    """Discover the local AS of the node."""
    cmd = "show bgp instance"
    instance_data = node.enable([cmd])[0]["result"]["vrfs"][vrf]
    return f"AS{instance_data['localAs']}"