Commit Graph

583 Commits

Author SHA1 Message Date
Dipti
bf5dbb841a pushing lfdata from dipti-branch, adding version number for all new_x_profile in realm.py, version number in test_vt_2
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-03 00:32:26 -08:00
Dipti
d580c8789a inheritance + import edits
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-02 23:29:57 -08:00
Dipti
016c05b708 adddition of l3cx_profile2, testbase, vt_2
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-02 20:12:44 -08:00
Dipti
209b88f682 imports added for L3CXProfile2
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-02 20:06:00 -08:00
Dipti
434feca6a5 Inheritance from base_profile works
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-02 13:46:24 -08:00
Jed Reynolds
208e99aa9f realm.py: fix vr_profile import, todo on lint warning about undeclared variable, fixes lint warning on static method
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-02 13:15:58 -08:00
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
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
f423588e59 whitespace
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
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
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
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
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
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
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
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
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
Matthew Stidham
0aaa22705e Fix realm layer 4 monitor function by removing DataFrame error from previous test
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-22 16:54:30 -08:00
Dipti
87210c1cb7 changed logic for var_time, improved error message for incorrect monitor_interval input
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-20 14:35:24 -08:00
Dipti
877ec79f7f deleted dupe init code in realm.py
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-19 11:12:45 -08:00
Chuck SmileyRekiere
f3d0848c5c Revert "creation of lfdata.py, import of lfdata.py"
This reverts commit 009b6110a1.
2021-02-19 09:10:10 -07:00
Dipti
009b6110a1 creation of lfdata.py, import of lfdata.py
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-19 02:45:01 -08:00
Dipti
84760e6959 added imports to only when they are used (small imports), dataframe comparison underway
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-18 10:24:55 -08:00
Dipti
b1ebef8f19 added total_seconds function to calculate total seconds since epoch, test_time_elapsed column to help with dataframe comparison
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-17 12:47:45 -08:00
Dipti
9db0c32b38 df to file fully implemented and working
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-17 01:36:24 -08:00
Jed Reynolds
2dbb6a6585 vr_profile.py: adding cleanup and refresh methods
- Refresh is to help update the state of the VirtualRouterFrame
- cleanup for removing a named virtual router

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-02-16 15:02:13 -08:00
Jed Reynolds
9b541cb20c vr_profile.py: adding dwell time on nc_show_vr to try helping Netsmith update
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-02-16 15:02:13 -08:00
Dipti
1a90891a74 added 'if debug' logic, df to excel now working, better print statements
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-16 14:52:38 -08:00
Dipti
836b24b781 changes csv to final output version
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-02-16 09:54:00 -08:00
Jed Reynolds
a988444dc8 creates a virtual router, WIP 2021-02-15 16:48:59 -08:00
Jed Reynolds
40e766a7a8 uses the logg() method 2021-02-15 16:48:59 -08:00
Jed Reynolds
07a7ce5a22 adds log output method, please keep developing this 2021-02-15 16:48:59 -08:00
Jed Reynolds
30e4bbc38b LFUtils: restricts input to string 2021-02-15 16:48:59 -08:00
Dipti
89f17eb678 start of comparison of 2 dataframes 2021-02-12 11:37:56 -08:00
Logan Lipke
820db9e03e Changed command for lfcurl 2021-02-11 17:44:46 -08:00
Dipti
283ad29523 labels port manager columns if they are not layer 3 columns 2021-02-11 01:30:43 -08:00