OpenIxia / IxNetwork

A central location for IxNetwork sample scripts and utilities. Please also visit http://openixia.com
MIT License
50 stars 59 forks source link

doc does not come with installation #78

Closed sshuguan closed 4 years ago

sshuguan commented 4 years ago

I installed ixnetwork_restpy through pip install ixnetwork_restpy. But WebUI doc doses not come with the installation. The folder, my_installation_dir/site-packages/ixnetwork_restpy/doc, does not exist.

therkong commented 4 years ago

doc does not come with the installation. Please check: https://openixia.github.io/ixnetwork_restpy/#/

whandjr commented 4 years ago

If you like to have a local copy, as some do, you can follow this step. It assume git client is installed.

c:\TEMP>git clone https://github.com/OpenIxia/openixia.github.io.git Cloning into 'openixia.github.io'... remote: Enumerating objects: 6, done. remote: Counting objects: 100% (6/6), done. remote: Compressing objects: 100% (5/5), done. remote: Total 125 (delta 1), reused 2 (delta 0), pack-reused 119 Receiving objects: 100% (125/125), 11.57 MiB | 3.88 MiB/s, done. Resolving deltas: 100% (60/60), done.

Once the clone is complete this will load the index page in your default browser

c:\TEMP>openixia.github.io\ixnetwork_restpy\index.html

Regards, Wes

Wesley Hand m: 818-312-6752

From: therkong notifications@github.com Sent: Tuesday, November 5, 2019 1:45 PM To: OpenIxia/IxNetwork IxNetwork@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [OpenIxia/IxNetwork] doc does not come with installation (#78)

[EXTERNAL]

doc does not come with the installation. Please check: https://openixia.github.io/ixnetwork_restpy/#/

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/OpenIxia/IxNetwork/issues/78?email_source=notifications&email_token=AGJXMDE3DUGLPQF7TOWXUO3QSHSNBA5CNFSM4JJJG6S2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDEN7AA#issuecomment-550035328, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGJXMDEF3GVSV6CTKQ5SMDTQSHSNBANCNFSM4JJJG6SQ.

sshuguan commented 4 years ago

Local copy got cloned and the pages work fine.

With regard to Linux API server, I can not locate solid information about file download, VM install, and etc. Can some guidance be given ?

Thanks, Sam Shangguan sam.shangguan.ext@nokia.com

hubertgee commented 4 years ago

Go to this link shown below. As for the linux api server VM installation, it is very straight forward. Just import it on your hypervisor, power up the VM and a dhcp ip address will be displayed. The below link will show you where to download the linux api server installation files and how to change the dhcp ip to static ip:

https://www.openixia.com/tutorials?subject=ixNetwork/linuxApiServer&page=overview.html

whandjr commented 4 years ago

The release notes also have instructions for the installation.

http://downloads.ixiacom.com/support/downloads_and_updates/public/ixnetwork/9.00/IxNetwork_9.00_Full_ReleaseNotes.html

Regards, Wes

Wesley Hand m: 818-312-6752

From: Hubert Gee notifications@github.com Sent: Wednesday, November 6, 2019 2:23 PM To: OpenIxia/IxNetwork IxNetwork@noreply.github.com Cc: Wesley Hand wesley.hand@keysight.com; Comment comment@noreply.github.com Subject: Re: [OpenIxia/IxNetwork] doc does not come with installation (#78)

[EXTERNAL]

Go to this link shown below. As for the linux api server VM installation, it is very straight forward. Just import it on your hypervisor, power up the VM and a dhcp ip address will be displayed. The below link will show you where to download the linux api server installation files and how to change the dhcp ip to static ip:

https://www.openixia.com/tutorials?subject=ixNetwork/linuxApiServer&page=overview.html

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/OpenIxia/IxNetwork/issues/78?email_source=notifications&email_token=AGJXMDFUMRSCK4VQW6UXTEDQSM7S5A5CNFSM4JJJG6S2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDIGHNY#issuecomment-550527927, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGJXMDDLBE5YXHQR4J6ONWDQSM7S5ANCNFSM4JJJG6SQ.

therkong commented 4 years ago

For file download, there’s sample script “file_transfer.py” in https://openixia.github.io/ixnetwork_restpy/#/samples

Below is the file content: from ixnetwork_restpy.testplatform.testplatform import TestPlatform from ixnetwork_restpy.files import Files

connect to a test tool platform

test_platform = TestPlatform('127.0.0.1') test_platform.Authenticate('admin', 'admin') sessions = test_platform.Sessions.add() ixnetwork = sessions.Ixnetwork ixnetwork.NewConfig()

add 4 vport objects

ixnetwork.Vport.add().add().add().add()

save the configuration on the server

ixnetwork.SaveConfig(Files('sample.ixncfg'))

get a list of remote files

print(sessions.GetFileList())

download the remote saved configuration as some other local file

sessions.DownloadFile('sample.ixncfg', 'local.ixncfg')

upload the local file

print(sessions.UploadFile('local.ixncfg'))

load the remote local configuration

print(ixnetwork.LoadConfig(Files('local.ixncfg')))

verify that the vport objects exist

assert(len(ixnetwork.Vport.find()) == 4)

Regards,

Theresa Kong Senior Tech Support Engineer Keysight Technologies

From: sshanggu notifications@github.com Sent: Wednesday, November 6, 2019 11:50 AM To: OpenIxia/IxNetwork IxNetwork@noreply.github.com Cc: Theresa Kong theresa.kong@keysight.com; Comment comment@noreply.github.com Subject: Re: [OpenIxia/IxNetwork] doc does not come with installation (#78)

[EXTERNAL]

Local copy got cloned and the pages work fine.

With regard to Linux API server, I can not locate solid information about file download, VM install, and etc. Can some guidance be given ?

Thanks, Sam Shangguan sam.shangguan.ext@nokia.commailto:sam.shangguan.ext@nokia.com

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/OpenIxia/IxNetwork/issues/78?email_source=notifications&email_token=AIRRUUMPGGJ4TNNBZ6DKSRLQSMNVJA5CNFSM4JJJG6S2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDHYVXY*issuecomment-550472415__;Iw!49nWKsucTI8wPg!xOstjYUBSPNmGNcQg7A3cEN_A4l_ly7WzUodgjY9gi5q3YUG2trx8-VSHmKrP5Kk7drk$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AIRRUUOWHK7SVAUBDS4HWXLQSMNVJANCNFSM4JJJG6SQ__;!49nWKsucTI8wPg!xOstjYUBSPNmGNcQg7A3cEN_A4l_ly7WzUodgjY9gi5q3YUG2trx8-VSHmKrP9OInSYx$.