Jed Reynolds
ca111483b7
updates url checking
2020-06-05 14:44:57 -07:00
Logan Lipke
7f5ec13a7d
Rewrote usage of LFRequest to work with new constructor
2020-06-05 14:41:03 -07:00
Logan Lipke
e5d677107c
Merge branch 'master' of https://github.com/greearb/lanforge-scripts
2020-06-05 14:14:38 -07:00
Logan Lipke
4445c0f696
Moved leading/trailing slash check to prevent NoneType Errors
2020-06-05 14:14:26 -07:00
Jed Reynolds
9fdffc7b62
sta_connect.py: removes use of f-strings
2020-06-05 14:10:53 -07:00
Logan Lipke
55a7ff3116
Moved leading/trailing slash check to prevent NoneType Errors
2020-06-05 14:03:58 -07:00
Logan Lipke
bc6499e213
Added check for valid url format for LFRequest init
2020-06-05 13:07:06 -07:00
Logan Lipke
4490d51b3a
Removed trailing forward slash
2020-06-05 12:46:59 -07:00
Logan Lipke
0f439528d5
Removed format_sta_name, switched to using LFUtils.portNameSeries for sta name generation
2020-06-05 11:19:18 -07:00
Logan Lipke
a137ca1792
Fixed missing %s in url
2020-06-05 10:51:51 -07:00
Jed Reynolds
0736b1d645
lfcli_base.py: removes type hints (too modern)
2020-06-05 10:01:04 -07:00
Jed Reynolds
fe5006edeb
realm.py: refactorings/improvements:
...
- changes super() refs to self
- adds debug output
- find_ports_like now has way to specify desired fields, single resource and debug
2020-06-04 22:54:33 -07:00
Jed Reynolds
ae014c3eeb
LFUtils.py: updates portListToAliasMap to have debug param, raise exception on empty/no results
2020-06-04 22:52:09 -07:00
Jed Reynolds
e26463cc59
lfcli_base.py: refactoring includes methods previously defined in sta_connect
2020-06-04 22:51:04 -07:00
Jed Reynolds
d5ecef3a9c
sta_connect.py: refactors methods to use self not super(), moves _fail, _pass into superclass
2020-06-04 22:50:18 -07:00
Jed Reynolds
af37e48d66
stations_connected.py: provides method to query how many stations are associated with BSSID
2020-06-04 22:49:17 -07:00
Jed Reynolds
510f72a0b0
renamed file
2020-06-04 15:26:26 -07:00
Jed Reynolds
53a5d3de95
querying stations example WIP
2020-06-04 15:19:29 -07:00
Jed Reynolds
b7d497b904
sta_connect_example.py: shows example of how to get passing state and failure messages
2020-06-04 15:06:38 -07:00
Jed Reynolds
0b8e460136
sta_connect.py: provides pass/fail methods:
...
- passes() method counts any message not /^pass/i as failure
- rearranges guards at top
- defines fail and pass prefixes, fail messages
- removes exit() and sets _halt_on_error to False
- compareVals now using _pass() and _fail()
- changes uses of f-string to modulo-string formatting, allowing tests to run on F24
2020-06-04 15:06:38 -07:00
Logan Lipke
194bcb7845
Fixed extra % sign in formatting
2020-06-04 14:53:47 -07:00
Logan Lipke
979b9754c1
Fixed missing %s
2020-06-04 14:51:32 -07:00
Logan Lipke
a1bd5865ed
Fixed missing %s
2020-06-04 14:16:56 -07:00
Logan Lipke
e768a1544b
Changed fstrings to % formatting
2020-06-04 14:15:40 -07:00
Logan Lipke
c4d96626a5
Merge remote-tracking branch 'origin/master'
2020-06-04 13:59:15 -07:00
Logan Lipke
80082e85b1
Changed fstrings to % formatting
2020-06-04 13:58:59 -07:00
Jed Reynolds
e2e7e9240c
sta_connect: updated to have a results array
2020-06-04 13:32:20 -07:00
Logan Lipke
29c18611da
Refactored code to fit with PEP8 specifications and work with LFcliBase.
2020-06-04 11:23:08 -07:00
Ben Greear
a5a8dc370d
Merge branch 'master' of github.com:greearb/lanforge-scripts
2020-06-04 06:12:57 -07:00
Ben Greear
a327818014
cicd: Consider oom-killer a crash when processing logs.
2020-06-04 06:12:33 -07:00
Jed Reynolds
dba92521f7
realm_test.py: successfully removes and creates new stations using build()
2020-06-04 00:31:54 -07:00
Jed Reynolds
4d27b27f7d
realm.py: lots of progress making StationProfile::build work
2020-06-04 00:31:15 -07:00
Jed Reynolds
14db352952
create_sta.py: updates call for ports
2020-06-04 00:29:39 -07:00
Jed Reynolds
d37f633eb6
set_port.py: adds port interest flags
2020-06-04 00:29:08 -07:00
Jed Reynolds
b5eb2f9e2f
LFUtils.py: lots of debug additions, whitespace/formatting
2020-06-04 00:28:44 -07:00
Jed Reynolds
49b137a3bd
realm.py: adds new_station_profile(), uses renamed methods
2020-06-03 16:52:25 -07:00
Jed Reynolds
2a1e79949f
py-json: renames methods to snake_case as per PEP8
2020-06-03 16:51:33 -07:00
Jed Reynolds
93012bd20c
realm_test.py: WIP, searching stations by pattern
2020-06-03 16:38:32 -07:00
Jed Reynolds
d43ed3c588
LFRequest.py: sets die-on-error, improves efficiency of find_ports_like
2020-06-03 16:37:29 -07:00
Jed Reynolds
3ec51b00aa
lfcli_base.py: improvements to error debugging
2020-06-03 16:35:34 -07:00
Jed Reynolds
546fbc371f
realm_test.py: WIP:
...
re-ordered operations
capturing and reporting more errors
improving output
2020-06-03 15:35:19 -07:00
Jed Reynolds
d6f463c352
realm.py: WIP:
...
Realm now inherits LFCliBase
replaces direct calls to LFRequest
adds methods for referring and computing flags by name
capturing and reporting more errors
2020-06-03 15:35:19 -07:00
Jed Reynolds
f2c1e71281
lfcli_base.py: attempt to improve error capture and reporting
2020-06-03 15:35:19 -07:00
Logan Lipke
fac2d4b2c1
Added check for jsonget of endpoint info, added stacktrace on fail
2020-06-03 15:09:26 -07:00
Jed Reynolds
d4817c9727
renames create_genlink to generic_cx
2020-06-03 13:41:55 -07:00
Jed Reynolds
551ff33b64
connectTest.py: uses refactored create_genlink class
2020-06-03 13:39:37 -07:00
Jed Reynolds
bd6fafd215
create_genlink.py: refactored to be a lfcli_base class
2020-06-03 13:39:07 -07:00
Jed Reynolds
e1d4478f7d
connectTest.py: reorganizes guards
2020-06-03 13:28:24 -07:00
Jed Reynolds
bcb814f2c1
realm.py: WIP:
...
- refer to lfclient not mgr in variable names
- refactoring to use flag names defined in py-json/LANforge
2020-06-03 13:28:24 -07:00
Jed Reynolds
b1efecd5d6
py-json: defines flags for add_sta, set_port
2020-06-03 13:28:24 -07:00