From fa48ffb590a3219cef87e786c99857a87ebb4c78 Mon Sep 17 00:00:00 2001 From: Logan Lipke Date: Thu, 11 Jun 2020 16:13:41 -0700 Subject: [PATCH] Added tests for new L3CXProfile create() method --- py-json/realm_test.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/py-json/realm_test.py b/py-json/realm_test.py index d23ca319..f0367003 100755 --- a/py-json/realm_test.py +++ b/py-json/realm_test.py @@ -62,9 +62,9 @@ try: sta_list = localrealm.station_list() print("%s Stations:" % {len(sta_list)}) pprint(sta_list) - print(" Stations like sta+:") + print(" Stations like wlan+:") print(localrealm.find_ports_like("wlan+")) - print(" Stations like sta0:") + print(" Stations like wlan0:") print(localrealm.find_ports_like("wlan0*")) print(" Stations between wlan0..wlan2:") print(localrealm.find_ports_like("wlan[0..2]")) @@ -99,7 +99,14 @@ print("** Creating Layer 3 CXs **") try: cxProfile = localrealm.new_l3_cx_profile() # set attributes of cxProfile - cxProfile.create("A", "lf_udp", localrealm.find_ports_like("sta+")) + cxProfile.create("lf_udp", side_a="1.1.eth1", side_b=list(localrealm.find_ports_like("sta+"))) +except Exception as x: + pprint(x) + exit(1) +try: + cxProfile = localrealm.new_l3_cx_profile() + # set attributes of cxProfile + cxProfile.create("lf_udp", side_a=list(localrealm.find_ports_like("sta+", side_b="1.1.eth1"))) except Exception as x: pprint(x) exit(1)