Skip to content

Commit

Permalink
"version 1.4.0"
Browse files Browse the repository at this point in the history
  • Loading branch information
vhowdhur committed Aug 8, 2024
1 parent e7152d6 commit 06cd3aa
Show file tree
Hide file tree
Showing 111 changed files with 3,348 additions and 6,067 deletions.
3 changes: 3 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Release Notes
### August 2024
* 1.4.0
* support for ixnetwork version 10.00.2407.87 (10.00 Update-2)
### May 2024
* 1.3.0
* support for ixnetwork version 10.20.2403.2
Expand Down
9 changes: 6 additions & 3 deletions ixnetwork_restpy/assistants/ports/portmapassistant.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Assistant class to simplify the task of virtual ports to test ports connections
"""

import time
import json
from ixnetwork_restpy.select import Select
Expand Down Expand Up @@ -86,9 +87,11 @@ def Map(
if Name is None or len(vport) == 0:
vport = self._IxNetwork.Vport.add(Name=Name)
self._map[vport.Name] = {
"location": Location
if Location is not None
else "%s;%s;%s" % (IpAddress, CardId, PortId),
"location": (
Location
if Location is not None
else "%s;%s;%s" % (IpAddress, CardId, PortId)
),
"vport": vport,
}
return vport
Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/assistants/sessions/sessionassistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Get a PortMapAssistant instance
Get a StatViewAssistant instance
"""

from ixnetwork_restpy.connection import Connection
from ixnetwork_restpy.errors import *
from ixnetwork_restpy.testplatform.testplatform import TestPlatform
Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/assistants/statistics/row.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Rows class to simplify access to statistics views data
"""

from ixnetwork_restpy.errors import *
import datetime

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Assistant class to simplify access to statistics views
"""

from ixnetwork_restpy.assistants.statistics.row import Row
from ixnetwork_restpy.errors import *
from ixnetwork_restpy.assistants.batch.batchupdate import BatchUpdate
Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/assistants/watch/watchassistant.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Assistant class to simplify access to statistics views
"""

import json
import websocket
import threading
Expand Down
2 changes: 0 additions & 2 deletions ixnetwork_restpy/pytest_tests/.pytest_cache/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions ixnetwork_restpy/pytest_tests/.pytest_cache/CACHEDIR.TAG

This file was deleted.

8 changes: 0 additions & 8 deletions ixnetwork_restpy/pytest_tests/.pytest_cache/README.md

This file was deleted.

This file was deleted.

244 changes: 0 additions & 244 deletions ixnetwork_restpy/pytest_tests/.pytest_cache/v/cache/nodeids

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Tests to verify the async=True functionality of operations
"""

import pytest
from ixnetwork_restpy import TestPlatform, BadRequestError

Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/pytest_tests/tests/test_refresh.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test the .refresh() functionality to ensure all
encapsulated resources are refreshed in a single call
"""

import pytest


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/pytest_tests/tests/test_update.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test the .update() functionality to ensure all
encapsulated resources are updated in a single call
"""

import pytest


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/assistants/port_map_assistant.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Demonstrates how to use the PortMapAssistant class
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This sample requires an already loaded configuration with at least 2 connected vports.
"""

from ixnetwork_restpy import SessionAssistant, StatViewAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/basic/getting_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- print statistics
- stop traffic
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/basic/internal_requests_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use API browser property names in the payload
"""

from ixnetwork_restpy import SessionAssistant, Files


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/basic/iterators.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
https://docs.python.org/2.7/library/stdtypes.html#typeiter
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/basic/multivalues.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
TestPlatform.Sessions.IxNetwork.Topology...Multivalue objects
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/basic/ngpf_device_ids.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Demonstrates some best practices for specifying device ids when executing ngpf operations
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/basic/ngpf_ipv4.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Demonstrates adding ipv4 devices
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/basic/object_from_obj_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
The TestPlatform.Sessions class has a helper method that assists in returning an object given a valid href
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/classic/classic_bgp.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Demonstrates adding a bgp neighbor range to a virtual port.
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/classic/classic_interfaces.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Demonstrates adding interfaces to virtual ports.
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/files/file_transfer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Demonstrates how to upload and download files to a remote server.
"""

from ixnetwork_restpy import SessionAssistant, Files


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/files/save_load_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
If the file does not exist locally an empty file using only the file name will be created on the server.
"""

from ixnetwork_restpy import SessionAssistant, Files


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/logging/collect_logs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Demonstrates collecting diagnostic logs
"""

from ixnetwork_restpy import SessionAssistant, Files


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/logging/restapi_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
The trace level can be specified in the SessionAssistant constructor and subsequently modified using the TestPlatform.Trace property.
The default log level is SessionAssistant.LOGLEVEL_NONE which has a logging level of CRITICAL
"""

from ixnetwork_restpy import SessionAssistant, TestPlatform


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/ports/assign_ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- waits until port statistic view for all test ports are ready
- returns a list of abstract test ports that have not been connected to test ports
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/ports/clear_ownership.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
by using the Vport.ConnectedTo reference and obtaining the Port object which has the ClearOwnership method
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/protocols/ospf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Demonstrates creating ospfv2 devices
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/protocols/tlvprofile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Demonstrates creating and copying over tlv templates into a tlv profile
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/quicktests/rfc2544back2back.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Demonstrates creating ospfv2 devices
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/sessions/quicktest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
""" Demonstrates how to create a Linux API Server QuickTest Web session
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/sessions/windows_sessions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Demonstrates standalone IxNetwork Windows GUI session management
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/statistics/csv_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- there is a Port Statistics view
"""

session_assistant = SessionAssistant(
IpAddress="127.0.0.1",
UserName="admin",
Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/statistics/csv_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- there is a Flow Statistics view
"""

from ixnetwork_restpy import SessionAssistant
import os

Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/traffic/traffic_custom_stack.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This sample demonstrates customizing a traffic item stack.
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/traffic/traffic_over_lags.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
NOTE: due to current limitations either a Lagportlacp or Lagportstaticlag must be added
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/traffic/traffic_over_protocols.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Demonstrates creating a traffic item that uses ipv4 endpoints.
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
1 change: 1 addition & 0 deletions ixnetwork_restpy/samples/traffic/traffic_over_vports.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Demonstrates creating a raw traffic item over vport endpoints.
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Demonstrates creating a traffic item that uses scalable sources and igmp multicast receivers.
"""

from ixnetwork_restpy import SessionAssistant


Expand Down
Loading

0 comments on commit 06cd3aa

Please sign in to comment.