From ea80924d70f740af3c15bf6e86d87c919b00a5b8 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Wed, 27 Jan 2021 12:44:00 -0800 Subject: [PATCH] README and name in column names --- README.md | 6 +++--- py-json/realm.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d4febe83..b44416e7 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ Read more examples in the [scripting LANforge](http://www.candelatech.com/lfcli_ ### Python Scripts ### +When starting to use Python, please run the update_deps.py script located in py-scripts to install all necessary dependencies for this library. + | Name | Purpose | |------|---------| | `lf_tos_test.py` | Python script to generate traffic at different QoS and report performance in a spreadsheet | @@ -121,7 +123,7 @@ one script to a separate directory is going to break its requirements. ### Requirements ### The perl scripts require the following perl packages to be installed. Most of these -perl packages are available through your repository as `.deb` or `.rpm` packages. +perl packages are available through your repository as `.deb` or `.rpm` packages. | Perl Package | RPM | Required | | -------------------|------------------|----------------| @@ -161,5 +163,3 @@ Please contact support@candelatech.com if you have any questions. _Thanks, Ben_ - - diff --git a/py-json/realm.py b/py-json/realm.py index 3a31bb5d..65e2ad15 100755 --- a/py-json/realm.py +++ b/py-json/realm.py @@ -1173,6 +1173,8 @@ class L3CXProfile(BaseProfile): # Step 1, column names . what is this for? fields=None + if 'Name' not in col_names': + col_names.insert(0,'Name') if col_names is not None and len(col_names) > 0: fields = ",".join(col_names) header_row=col_names