mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
realm_test.py: pep8 name
This commit is contained in:
@@ -97,35 +97,35 @@ print("** Removing previous CXs **")
|
|||||||
|
|
||||||
print("** Creating Layer 3 CXs **")
|
print("** Creating Layer 3 CXs **")
|
||||||
try:
|
try:
|
||||||
cxProfile = localrealm.new_l3_cx_profile()
|
cx_profile = localrealm.new_l3_cx_profile()
|
||||||
# set attributes of cxProfile
|
# set attributes of cxProfile
|
||||||
cxProfile.create("lf_udp", side_a="1.1.eth1", side_b=list(localrealm.find_ports_like("sta+")))
|
cx_profile.create("lf_udp", side_a="1.1.eth1", side_b=list(localrealm.find_ports_like("sta+")))
|
||||||
except Exception as x:
|
except Exception as x:
|
||||||
pprint(x)
|
pprint(x)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cxProfile = localrealm.new_l3_cx_profile()
|
cx_profile = localrealm.new_l3_cx_profile()
|
||||||
# set attributes of cxProfile
|
# set attributes of cxProfile
|
||||||
cxProfile.create("lf_udp", side_a=list(localrealm.find_ports_like("sta+")), side_b="1.1.eth1")
|
cx_profile.create("lf_udp", side_a=list(localrealm.find_ports_like("sta+")), side_b="1.1.eth1")
|
||||||
except Exception as x:
|
except Exception as x:
|
||||||
pprint(x)
|
pprint(x)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
print("** Creating Layer 4 CXs **")
|
print("** Creating Layer 4 CXs **")
|
||||||
try:
|
try:
|
||||||
cxProfile = localrealm.new_l4_cx_profile()
|
cx_profile = localrealm.new_l4_cx_profile()
|
||||||
# set attributes of cxProfile
|
# set attributes of cxProfile
|
||||||
cxProfile.create(localrealm.find_ports_like("sta+"))
|
cx_profile.create(localrealm.find_ports_like("sta+"))
|
||||||
except Exception as x:
|
except Exception as x:
|
||||||
pprint(x)
|
pprint(x)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
print("** Creating Generic CXs **")
|
print("** Creating Generic CXs **")
|
||||||
try:
|
try:
|
||||||
cxProfile = localrealm.new_generic_cx_profile()
|
cx_profile = localrealm.new_generic_cx_profile()
|
||||||
# set attributes of cxProfile
|
# set attributes of cxProfile
|
||||||
cxProfile.create(localrealm.find_ports_like("sta+"))
|
cx_profile.create(localrealm.find_ports_like("sta+"))
|
||||||
except Exception as x:
|
except Exception as x:
|
||||||
pprint(x)
|
pprint(x)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user