Commit Graph

2582 Commits

Author SHA1 Message Date
Jed Reynolds
37c4606df7 vr_profile.py: forcing refresh, renamed variable
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 13:13:57 -08:00
Jed Reynolds
5975b178f6 create_vr.py: debugging
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 13:13:57 -08:00
Jed Reynolds
2a27a70489 realm.py: should not need self.halt_on_error because that's what self.exit_on_error is for
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 13:13:57 -08:00
Jed Reynolds
2b8eacdd19 vr_profile.py: WIP fixing caching of vrcx list, fixing scope on some temporary variables
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 13:13:57 -08:00
Jed Reynolds
b869a46c12 create_vr.py: start() method attempts to test if vrcx is in router WIP
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 13:13:57 -08:00
Jed Reynolds
f423588e59 whitespace
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 13:13:57 -08:00
Jed Reynolds
7b43f6d2fe update_dependencies.py: adds simple-geometry library
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 13:13:57 -08:00
Dipti
4bcddb1c8d import fix
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-02 13:06:47 -08:00
Dipti
362b6f8a07 fixing mistake. adding L4CXProfile
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-02 13:02:54 -08:00
Chuck SmileyRekiere
6ac8cd0269 l3_cxprofile.py : change inheritance to LFCliBase from BaseProfile 2021-03-02 08:20:52 -07:00
Jed Reynolds
a73e9723d5 create_vr.py: start() method attempts to move vrcx
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 00:08:00 -08:00
Jed Reynolds
27a94d00e7 vr_profile.py: WIP adding placement logic for moving vrcx into a virtual router
- introduces cached_routers since routers take over 1s to query, self.router_list() updates self.cached_routers
- positional placement math is correct
- adds method for finding cached router given nominal parameters of resource_id and name
- vrcx naming is broken, somehow rd0a becomes a mythical 1.1.rd0a
- netsmith window not updated after moving vrcx yet

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 00:08:00 -08:00
Jed Reynolds
b3b36be2ae create_vr.py: adding vrcx movement
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 00:08:00 -08:00
Jed Reynolds
6c9d1e484d LFRequest.py: adds stacktrace output to errors that exit
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 00:08:00 -08:00
Jed Reynolds
ccf5688f5e vr_profile.py: WIP adding placement logic for virtual routers, getting point within VR bounds
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 00:08:00 -08:00
Jed Reynolds
af7002d495 vr_profile.py: WIP adding placement logic for virtual routers
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 00:08:00 -08:00
Jed Reynolds
97141b2229 realm.py: adds arguments to logg to display structure
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 00:08:00 -08:00
Dipti
2f102bab82 fixing imports on both files
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-01 14:55:22 -08:00
Dipti
5706f48eb0 BaseProfile addition - baseprofile is inherited by L3CXProfile
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-01 14:51:29 -08:00
Dipti
76b2b90d1d l3_cxprofile taken out of realm, version number put into realm.py
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-01 14:40:51 -08:00
Dipti
00cf3c827c l3_cxprofile taken out of realm, version number put into realm.py
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-01 14:38:41 -08:00
Matthew Stidham
cd46e17589 formatting error in measure_station_time_up
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-03-01 10:58:43 -08:00
Jed Reynolds
d2c1714417 adjust_apache.pl: more improvements:
- reformatted inconsistent indentation
- added options '-a' automatic '-h' help '-d' debug
- tests for '-t STDIN' to determine if interactive mode terminal
- prints diff -y comparison of diff files
- does not copy if no changes
- logs warnings and errors using logger
- you can check journalctl to see where backup and editfiles are
- reduces debug output

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-02-27 12:56:12 -08:00
Jed Reynolds
c6ce8e2eee adjust_apache.pl: several fixes:
- avoids printing eth0 hostname multiple times
- stops printing LF-HOSTNAME-NEXT multiple times
- fixes die() on untracked ip address
- fixes warnings about duplicate IPs for hostnames
- writes to temp file before copying it over to /etc/hosts
- checks length of /tmp/t_hosts_X file and exits if length is zero
- backs up /etc/hosts to /etc/.hosts-$datetime before starting edits

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-02-26 18:34:01 -08:00
Jed Reynolds
5f39aee5bc vr_profile: debugging breakpoint
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-02-26 18:34:01 -08:00
Jed Reynolds
b8cb1df566 vr_profile: WIP improved bounding box
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-02-26 18:34:01 -08:00
Chuck SmileyRekiere
3049685ae2 lf_snp_test.py : more generic controller name script cleanup lf_dfs_test.py minor script cleanup
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-02-26 17:31:02 -07:00
Matthew Stidham
6a343f7995 measure_station_time_up now works on multiple stations
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-26 14:37:18 -08:00
Jed Reynolds
ab19b3ae95 vr_profile: WIP computing bounding box of all VRs and vrcx entities
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-02-26 13:45:43 -08:00
Jed Reynolds
4f85aa86c9 create_vr.py: fixes broken requires/default option for vr_name
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-02-26 12:29:04 -08:00
Jed Reynolds
4990a1397e vr_profile.py: can query routers and router connections, get coordinates
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-02-26 12:28:40 -08:00
Jed Reynolds
dd47bf0e63 LFUtils.py: adds list_to_alias_map() a generic version of port_list_to_alias_map
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-02-26 12:28:04 -08:00
Dipti
dcf85ba785 compare two dfs, small bugs but logic is now there
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-25 09:38:48 -08:00
Matthew Stidham
7d03848c90 Get time point for when the stations are up
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-24 20:07:07 -08:00
Matthew Stidham
932ddb1698 create measure_station_time_up
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-24 17:28:56 -08:00
Matthew Stidham
6ca7eb5a67 correct the testgroup del_group command
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-24 14:00:46 -08:00
Matthew Stidham
1ff7b5df50 Correct the rm_group command in testgroup.py
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-24 13:57:54 -08:00
Chuck SmileyRekiere
c1537145e8 test_l3_longevity.py : removed controller programming
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-02-24 14:33:58 -07:00
Chuck SmileyRekiere
8cb00b99b5 Revert "test_l3_longevity.py : move results to report-data"
This reverts commit 2ec33b65de.
2021-02-24 13:59:14 -07:00
Chuck SmileyRekiere
2ec33b65de test_l3_longevity.py : move results to report-data
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-02-24 13:53:08 -07:00
Matthew Stidham
b65722b07b Do not run scenario_throughput, it takes too long
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-24 12:40:17 -08:00
Matthew Stidham
433fe14aff Additional testgorup regression tests
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-24 11:49:53 -08:00
Matthew Stidham
f3453d7350 Fix test_fileio command
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-24 11:44:55 -08:00
Matthew Stidham
dcd3f2a108 Added a new logging function using the python logging function into lfcli base and updating realm to use the new function
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-24 11:25:03 -08:00
Dipti
12ec1f640c edits to duration loop, doesn't need to pause when toggling 'another iteration'
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-23 22:41:35 -08:00
Dipti
cb757f5d28 no longer dependencies on LFclibase in test script
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-23 13:25:41 -08:00
Matthew Stidham
8785416614 Fixing formatting errors
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-23 13:01:31 -08:00
Dipti
ba440709fa test class no longer needs self.host,client,url
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-23 12:56:30 -08:00
Matthew Stidham
ddc27c44da Use functions so that run_l3_longevity and scenario work in regression
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-23 12:15:12 -08:00
Jed Reynolds
b1aace043e vr_profile.py: can now make Netsmith window update and sync
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-02-23 08:12:26 -08:00