Fixing test_wanlink so it should work now

Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
Matthew Stidham
2021-03-12 13:33:14 -08:00
parent e5a29934d4
commit 4dd66e6a49
2 changed files with 12 additions and 10 deletions

View File

@@ -23,13 +23,13 @@ j_printer = pprint.PrettyPrinter(indent=2)
# typically you're using resource 1 in stand alone realm
resource_id = 1
def main():
base_url = "http://localhost:8080"
def main(base_url="http://localhost:8080"):
json_post = ""
json_response = ""
num_wanlinks = -1
# see if there are old wanlinks to remove
lf_r = LFRequest.LFRequest(base_url+"/wl/list")
print(lf_r.get_as_json())
port_a ="rd0a"
port_b ="rd1a"