All notable changes to this project will be documented in this file. You can upgrade ishare2 to the latest version using ishare2 upgrade
and then selecting option 1
- Added:
ishare2 test
command. This command will test if services ishare2 depends on are reachable. - Added:
ishare2 gui install
command. This command will install the GUI for ishare2. This replaces the oldishare2 gui download
command. - Added: New way of downloading images. Now, ishare2 will download images using aria2c. This will allow users to download images faster and with less errors. It also allows users to resume downloads in case they get interrupted.
- Added: ishare2 will now have its own folder in /opt. Here, ishare2 will store all its files.
- Added: optimized ishare2 installation script. Now, ishare2 will reuse already downloaded files if they are available and are not older than 1 day.
- Added: new ishare2 GUI version from: https://github.com/ishare2-org/ishare2-web-gui
- Added: new ishare2 GUI installation script. This script will install the GUI for ishare2.
- Added: new ishare2 sources.list file. This file will be used to install ishare2 dependencies and fetch ishare2 files.
- Improved: ishare2 will handle errors better. Now, if an error occurs, ishare2 will try to recover from it or will display a message to the user.
- Fixed: Broken links for ishare2 upgrade menu.
- Prevent broken links for ishare2 upgrade menu.
- Added: Reboot confirmation to upgrade scripts.
- Added: New upgrade option in upgrade menu: 3) (UNSTABLE) Upgrade to PNETLab 6 (ONLY AVAILABLE FOR UBUNTU 20.04). This will install PNetLab 6 on your VM. It is only supported on Ubuntu 20.04.
- Added:
--overwrite
flag. Users can specify they want to overwrite an image by passing this 4th argument. Useful when download gets interrupted or you want to restore it to the initial state. Syntax:ishare2 pull <type> <id> --overwrite
- Modified: Minor changes were made in the check_user_is_root() function in order to be more precise on user privileges when executing ishare2
- Modified: About
ishare2 upgrade
>option 2
: Now, there are 2 stable versions of PNETLab available to use. Other releases were BETA type and they are not available anymore
- Modified: PNETLab version 5.3.11 changed state from BETA to STABLE. This upgrade can be implemented using this command:
ishare2 upgrade
>option 2
and selecting the correspondant option
- Added: A new option was added to
ishare2 upgrade
>option 2
: Now, it is possible to upgrade PNETLab from almost any version to v5.3.11 (Not possible for this case: 6.x to 5.3.11)
- Added: A new option was added to
ishare2 upgrade
>option 2
: Now, it is possible to upgrade PNETLab from almost any version to v5.3.10 (Not possible for this case: 6.x to 5.3.10)
- Added: A new option was added to
ishare2 upgrade
>option 2
: Now, it is possible to upgrade PNETLab from almost any version to v5.3.8 (Not possible for this case: 6.x to 5.3.8)
- Added: Now, menu
ishare2 upgrade
>option 2
displays a message next to each version to distinguish between the STABLE and BETA versions of PNETLab
- Added: A new option was added to
ishare2 upgrade
>option 2
: Now, it is possible to upgrade PNETLab from almost any version to v5.3.7 (Not possible for this case: 6.x to 5.3.7)
- Added: A new option was added to
ishare2 upgrade
>option 2
: Now, it is possible to upgrade PNETLab from almost any version to v5.3.5 (Not possible for this case: 6.x to 5.3.5)
- Added: A new option was added to
ishare2 upgrade
>option 2
: Now, it is possible to upgrade PNETLab from almost any version to v5.3.4 (Not possible for this case: 6.x to 5.3.4)
- Added: Some instructions were added to
ishare2_gui_download()
function in order to avoid some errors related to missing packages (pip install uvicorn, pip install fastapi and pip install jinja2 instructions were added)
- Added: Command
ishare2 gui stop
was added intoishare2_gui_download()
function in order to avoid errors when downloading/upgrading ishare2 GUI
- Added: A new version control was added for ishare2 GUI. It can be seen using the
ishare2
command and looking at the bottom of it. New functions and variables were implemented. Also, usingishare2 upgrade
>option 3
it is possible to upgrade it.
- Added: A new option was added to
ishare2 upgrade
>option 2
: Now, it is possible to upgrade PNETLab from almost any version to v5.3.2 (Not possible for this case: 6.x to 5.3.2)
- Added: A new feature has been added to ishare2: It is a web app to use ishare2 in browser and it is called
ishare2 GUI
. You can download it by usingishare2 gui download
and then start it withishare2 gui start
. Open your web browser using http://localhost:5000, http://127.0.01:5000 or http://pnetlab_ip_address:5000 to access. Also, it can be stopped by usingishare2 gui stop
and restarted withishare2 gui restart
- Added: A new option was added to
ishare2 upgrade
>option 2
: Now, it is possible to upgrade PNETLab from almost any version to v5.3.0 (Not possible for this case: 6.x to 5.3.0)
- Added: A new option was added to
ishare2 upgrade
>option 2
: Now, it is possible to upgrade PNETLab from almost any version to v5.2.9 (Not possible for this case: 6.x to 5.2.9)
-
Modified: Changes were made in set_yml_template_folder_location() function. Now, this function support the following PNETLab versions:
For
/opt/unetlab/html/templates/
: 4.2.10 and 5.0.1For
/opt/unetlab/html/templates/intel/
or/opt/unetlab/html/templates/amd/
: 5.2.x, 5.3.x and 6.x5.3.x is not implemented yet (Change made in case it is needed in the future)
- Modified: --content-disposition was added in order to download images from other repo
- Modified: Some strings were modified when using this option:
ishare2 upgrade
>option 2
. Now, it looks better for users
- Added: A new option was added to
ishare2 upgrade
>option 2
: Now, it is possible to upgrade PNETLab from almost any version to v5.2.8 (Not possible for this case: 6.x to 5.2.8)
- Added: Some code has been added to ishare2 to support PNETLab upgrade to v5.2.8 (Same as v5.2.7 fix: AMD and Intel folders at html/templates/). PNETLab users from v4.2.10 should not have any problem
- Added: This version adds support to PNETLab 6.x related to yml template location (AMD and Intel folders)
- Added: A menu was added into the
ishare2 upgrade
command. This menu allows users to upgrade ishare2 and PNETLab to their latest versions
- Added: A function called set_url_constants() was added to the code and to the main() execution. This function contains all of the URL needed in the project.
- Modified: Function called set_color_variables() was renamed to set_color_constants()
- Modified: Minor changes in code: A function called set_color_variables() was created to define all color variables in there. Added to main() execution
- Deleted: Minor changes in code: Every definition of those variables was removed to get a cleaner code
Note: This update does not change how the code works in any way
- Modified: Minor changes in code: A line was changed from: ls -lh -R /opt/unetlab/addons/iol/bin to: ls -lh -R /opt/unetlab/addons/iol/bin/
- Deleted: Minor changes in code: A comment stating "# Main code" was deleted from the code
Note: This update does not change how the code works in any way
- Modified: ishare2 code has been modified to better readability using a main() function
- Modified: Some functions were put together for better understanding: msg_available_options_for_ishare2_search() and msg_incorrect_argument_or_no_arg_for_ishare2_pull()
- Modified: ishare2 content help function was indented
- Modified: get_initial_info() renamed to get_initial_information()
- Modified: check_version_file_exists() renamed to check_ishare2_version_file_exists()
- Added: - ishare2 search palo and - ishare2 search Licensed were added like examples to the ishare2 message when explaining ishare2 search
- Added: selector() function was created in order to use a main() function
- Added: A new command was added:
ishare2 changelog
. It shows the last 15 lines of this CHANGELOG.md file in the terminal
- Modified: Code in the set_yml_template_folder_location() function has been rewritten for a better readability (5.2.5, 5.2.6 and 5.2.7)
- Added: Some code has been added to ishare2 to support PNETLab upgrade to v5.2.7 (Same as v5.2.6 fix: AMD and Intel folders at html/templates/). PNETLab users from v4.2.10 should not have any problem
- Added: Some code has been added to ishare2 to support PNETLab upgrade to v5.2.6 (Same as v5.2.5 fix: AMD and Intel folders at html/templates/). PNETLab users from v4.2.10 should not have problems
- Modified: Code has been modified for a better readability
- Deleted: variables called CREDENTIALS (No longer used)
- Added: Code supporting PNETLab upgrade to v5.2.5. This way, users can upgrade to v5.2.5 and use ishare2 (Problem fixed is related to amd and intel folders). Also, PNETLab v4.2.10 users are able to keep using it without any problems
- Fixed: A problem when trying to download a file in FILE6LINK position (Weird characters added for no reason: ,,,)
- Modified: Some "if-then" were put in the same line for a better readability
- Deleted: Code related to problem 1 and png files
- Deleted: Some echo commands that were previously commented
-
Added code in show_ishare2_usage() function:
This code shows a message when a newer ishare2 upgrade is available when using
ishare2
commandMessage is displayed in yellow and is located at the bottom part of this command output
Code looks cleaner and organized in that function now
- Added docker as an option of param1 (type) when using
ishare2
- Modified function:
corrections_for_docker_images_in_lab_function()
using a for loop and an array
- Added a bin image to ishare2: "i86bi_LinuxL3-AdvEnterpriseK9-M2_157_3_May_2018.bin". This image was already available in ishare2 but the name was a little bit different (specifically it was: "i86bi_Linux-L3-AdvEnterpriseK9-M2_157_3_May_2018.bin"). So, this was made in order to be able to find and download this image in some labs that had this new name. So, it was decided to upload the same image but with a different name.
- Added support to download dockers from eveng docker hub (https://hub.docker.com/u/eveng) when present in lab files
- Added
ishare2 installed docker
command. Also, available fromishare2 installed all
- Added green colors when using
ishare2 installed all
for better readabillity - Added green colors when using
ishare2 labs
andishare2 mylabs
for better readabillity
- Modified text on
ishare2
: "Show contact info" changed to "Show useful information" - Modified README.md: Now, there are two sections when describing ishare2: Syntax and Examples of usage
-
Added a better description message when user tries to upgrade ishare2 and it already has the last version:
Before
echo "You have the latest available version: $REMOTE_VALUE"
After
echo "ishare2 $REMOTE_VALUE is currently the newest version available"
-
Added some validation related to check if the user is root when executing
ishare2
. If not root, an error message will be prompt and the script will finish
Fixed a bug when using ishare2 relicense
Added code to list docker images installed in server after pulling them when using ishare2 labs
and ishare2 mylabs
. Also, it retrieves the number of docker images in server.
Added some code to check docker service status in order to avoid problems when trying to pull docker images using
ishare2 labs <number>
ishare2 labs all
ishare2 mylabs <number>
ishare2 mylabs all
Initial release