Skip to content

Commit

Permalink
"version 1.0.48"
Browse files Browse the repository at this point in the history
  • Loading branch information
nutu committed Dec 5, 2019
1 parent 3d392bd commit 03a33ad
Show file tree
Hide file tree
Showing 22 changed files with 11,733 additions and 11,718 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
4 changes: 1 addition & 3 deletions MANIFEST.in
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ include README.md
include RELEASENOTES.md
include setup.py
include version.txt
recursive-include ixnetwork_restpy *.py
recursive-exclude ixnetwork_restpy/docs *.*
recursive-exclude ixnetwork_restpy/pytest_tests *.*
recursive-include bps_restpy *.py
6 changes: 2 additions & 4 deletions README.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ pip install --upgrade bps-restpy
import time, sys, os
# Import corresponding BPS RESTv2 python2.7/ 3 library from outside the folder with samples.
sys.path.insert(1, os.path.dirname(os.getcwd()))
if sys.version_info[0] >= 3:
from bps_restpy.bps_restpy import BPS, pp
else:
from bps_restpy.bps_restpy3 import BPS, pp
from bps_restpy.bps import BPS, pp
########################################
Expand Down
3 changes: 2 additions & 1 deletion RELEASENOTES.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

### Nov 2019
* 1.0.1
* adding first version of breakingpoint rest wraper library
* Add BreakingPoint RESTv2 Python Wraper library and samples. (supported from BreakingPoint Release 9.0 Update2 +)
* Support for older versions and BreakingPoint RESTv1 API library files can be foudn in the build
Empty file modified bps_restpy/__init__.py
100755 → 100644
Empty file.
6 changes: 6 additions & 0 deletions bps_restpy/bps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import sys,os
#sys.path.insert(0,os.path.abspath(__file__+"/../.."))
if sys.version_info[0] >= 3:
from .restPyWrapper3 import BPS, pp
else:
from .restPyWrapper import BPS, pp
11,664 changes: 5,832 additions & 5,832 deletions bps_restpy/bps_restpy.py → bps_restpy/restPyWrapper.py
100755 → 100644

Large diffs are not rendered by default.

11,662 changes: 5,831 additions & 5,831 deletions bps_restpy/bps_restpy3.py → bps_restpy/restPyWrapper3.py
100755 → 100644

Large diffs are not rendered by default.

Empty file modified bps_restpy/rest_samples/Sample_AppSim_template.bpt
100755 → 100644
Empty file.
Empty file modified bps_restpy/rest_samples/nn_sample.bpt
100755 → 100644
Empty file.
11 changes: 5 additions & 6 deletions bps_restpy/rest_samples/s01_New_Reserve_Run.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@

########################################
import time, sys, os
# Import corresponding BPSv2 python2.7/ 3 library from outside the folder with samples.
sys.path.insert(1, os.path.dirname(os.getcwd()))
if sys.version_info[0] >= 3:
from bps_restpy.bps_restpy3 import BPS, pp
else:
from bps_restpy.bps_restpy import BPS, pp
# Add bps_restpy libpath *required if the library is not installed
libpath = os.path.abspath(__file__+"/../../..")
sys.path.insert(0,libpath)

from bps_restpy.bps import BPS,pp

########################################

Expand Down
10 changes: 4 additions & 6 deletions bps_restpy/rest_samples/s02_Load_Configure_Run_Report.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@

########################################
import time, sys, os
# Import corresponding BPSv2 python2.7/ 3 library from outside the folder with samples.
sys.path.insert(1, os.path.dirname(os.getcwd()))
if sys.version_info[0] >= 3:
from bps_restpy.bps_restpy3 import BPS, pp
else:
from bps_restpy.bps_restpy import BPS, pp
# Add bps_restpy libpath *required if the library is not installed
libpath = os.path.abspath(__file__+"/../../..")
sys.path.insert(0,libpath)

from bps_restpy.bps import BPS,pp

########################################
# Demo script global variables
Expand Down
10 changes: 4 additions & 6 deletions bps_restpy/rest_samples/s03_Flow_SuperFlow_AppProfile.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@

########################################
import time, sys, os
# Import corresponding BPSv2 python2.7/ 3 library from outside the folder with samples.
sys.path.insert(1, os.path.dirname(os.getcwd()))
if sys.version_info[0] >= 3:
from bps_restpy.bps_restpy3 import BPS, pp
else:
from bps_restpy.bps_restpy import BPS, pp
# Add bps_restpy libpath *required if the library is not installed
libpath = os.path.abspath(__file__+"/../../..")
sys.path.insert(0,libpath)

from bps_restpy.bps import BPS,pp

########################################
# Demo script global variables
Expand Down
11 changes: 5 additions & 6 deletions bps_restpy/rest_samples/s04_Configure_Network.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
#================

import time, sys, os
# Import corresponding BPSv2 python2 .7/ 3 library from outside the folder with samples.
sys.path.insert(1, os.path.dirname(os.getcwd()))
if sys.version_info[0] >= 3:
from bps_restpy.bps_restpy3 import BPS, pp
else:
from bps_restpy.bps_restpy import BPS, pp
# Add bps_restpy libpath *required if the library is not installed
libpath = os.path.abspath(__file__+"/../../..")
sys.path.insert(0,libpath)

from bps_restpy.bps import BPS,pp


########################################
Expand Down
10 changes: 4 additions & 6 deletions bps_restpy/rest_samples/s05_RunCancel_EvaluateReport_and_ExportCapture.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@
#================

import time, sys, os
# Import corresponding BPSv2 python2 .7/ 3 library from outside the folder with samples.
sys.path.insert(1, os.path.dirname(os.getcwd()))
if sys.version_info[0] >= 3:
from bps_restpy.bps_restpy3 import BPS, pp
else:
from bps_restpy.bps_restpy import BPS, pp
# Add bps_restpy libpath *required if the library is not installed
libpath = os.path.abspath(__file__+"/../../..")
sys.path.insert(0,libpath)

from bps_restpy.bps import BPS,pp

########################################
# Demo script global variables
Expand Down
10 changes: 4 additions & 6 deletions bps_restpy/rest_samples/s06_StrikeLists_and_Strikes.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@

########################################
import time, sys, os
# Import corresponding BPSv2 python2.7/ 3 library from outside the folder with samples.
sys.path.insert(1, os.path.dirname(os.getcwd()))
if sys.version_info[0] >= 3:
from bps_restpy.bps_restpy3 import BPS, pp
else:
from bps_restpy.bps_restpy import BPS, pp
# Add bps_restpy libpath *required if the library is not installed
libpath = os.path.abspath(__file__+"/../../..")
sys.path.insert(0,libpath)

from bps_restpy.bps import BPS,pp

########################################
# Demo script global variables
Expand Down
9 changes: 2 additions & 7 deletions bps_restpy/rest_samples/s07_TestModel_Run.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@

import time, sys, os
# Import corresponding BPSv2 python2.7/ 3 library from outside the folder with samples.
sys.path.insert(1, os.path.dirname(os.getcwd()))
if sys.version_info[0] >= 3:
from bps_restpy.bps_restpy3 import BPS, pp
else:
from bps_restpy.bps_restpy import BPS, pp


sys.path.insert(0,os.path.abspath(__file__+"/../.."))
from bps_restpy.bps import BPS,pp

########################################
# Demo script global variables
Expand Down
Empty file added bps_restpy/tests/__init__.py
Empty file.
9 changes: 9 additions & 0 deletions bps_restpy/tests/test_todo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import unittest
from bps_restpy.bps import BPS,pp

class TestTODO(unittest.TestCase):
def test_TDOD1(self):
condition = "AllGOOD"
assert(condition == "AllGOOD")


3 changes: 0 additions & 3 deletions setup.cfg

This file was deleted.

Empty file modified setup.py
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion version.txt
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.47
1.0.48

0 comments on commit 03a33ad

Please sign in to comment.