-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
4,526 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
332 changes: 206 additions & 126 deletions
332
ixnetwork_restpy/pytest_tests/.pytest_cache/v/cache/nodeids
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 8 additions & 8 deletions
16
...restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/applibprofile/applibprofile.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
127 changes: 127 additions & 0 deletions
127
...tplatform/sessions/ixnetwork/globals/topology/lac/lac_8a6ae7a66f1fba21c9a7af820795ad38.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
# MIT LICENSE | ||
# | ||
# Copyright 1997 - 2020 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. | ||
from uhd_restpy.base import Base | ||
from uhd_restpy.files import Files | ||
|
||
|
||
class Lac(Base): | ||
"""L2TP Access Concentrator global and per-port settings | ||
The Lac class encapsulates a required lac resource which will be retrieved from the server every time the property is accessed. | ||
""" | ||
|
||
__slots__ = () | ||
_SDM_NAME = 'lac' | ||
_SDM_ATT_MAP = { | ||
'Count': 'count', | ||
'DescriptiveName': 'descriptiveName', | ||
'EnableAggregatedCSUN': 'enableAggregatedCSUN', | ||
'Name': 'name', | ||
'RowNames': 'rowNames', | ||
} | ||
|
||
def __init__(self, parent): | ||
super(Lac, self).__init__(parent) | ||
|
||
@property | ||
def Count(self): | ||
""" | ||
Returns | ||
------- | ||
- number: Number of elements inside associated multiplier-scaled container object, e.g. number of devices inside a Device Group. | ||
""" | ||
return self._get_attribute(self._SDM_ATT_MAP['Count']) | ||
|
||
@property | ||
def DescriptiveName(self): | ||
""" | ||
Returns | ||
------- | ||
- str: Longer, more descriptive name for element. It's not guaranteed to be unique like -name-, but may offer more context. | ||
""" | ||
return self._get_attribute(self._SDM_ATT_MAP['DescriptiveName']) | ||
|
||
@property | ||
def EnableAggregatedCSUN(self): | ||
""" | ||
Returns | ||
------- | ||
- obj(uhd_restpy.multivalue.Multivalue): Enables Aggregated CSUN | ||
""" | ||
from uhd_restpy.multivalue import Multivalue | ||
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['EnableAggregatedCSUN'])) | ||
|
||
@property | ||
def Name(self): | ||
""" | ||
Returns | ||
------- | ||
- str: Name of NGPF element, guaranteed to be unique in Scenario | ||
""" | ||
return self._get_attribute(self._SDM_ATT_MAP['Name']) | ||
@Name.setter | ||
def Name(self, value): | ||
self._set_attribute(self._SDM_ATT_MAP['Name'], value) | ||
|
||
@property | ||
def RowNames(self): | ||
""" | ||
Returns | ||
------- | ||
- list(str): Name of rows | ||
""" | ||
return self._get_attribute(self._SDM_ATT_MAP['RowNames']) | ||
|
||
def update(self, Name=None): | ||
"""Updates lac resource on the server. | ||
This method has some named parameters with a type: obj (Multivalue). | ||
The Multivalue class has documentation that details the possible values for those named parameters. | ||
Args | ||
---- | ||
- Name (str): Name of NGPF element, guaranteed to be unique in Scenario | ||
Raises | ||
------ | ||
- ServerError: The server has encountered an uncategorized error condition | ||
""" | ||
return self._update(self._map_locals(self._SDM_ATT_MAP, locals())) | ||
|
||
def get_device_ids(self, PortNames=None, EnableAggregatedCSUN=None): | ||
"""Base class infrastructure that gets a list of lac device ids encapsulated by this object. | ||
Use the optional regex parameters in the method to refine the list of device ids encapsulated by this object. | ||
Args | ||
---- | ||
- PortNames (str): optional regex of port names | ||
- EnableAggregatedCSUN (str): optional regex of enableAggregatedCSUN | ||
Returns | ||
------- | ||
- list(int): A list of device ids that meets the regex criteria provided in the method parameters | ||
Raises | ||
------ | ||
- ServerError: The server has encountered an uncategorized error condition | ||
""" | ||
return self._get_ngpf_device_ids(locals()) |
Empty file.
93 changes: 93 additions & 0 deletions
93
...latform/sessions/ixnetwork/globals/topology/lacp/lacp_8a53bc5dca056354ad9594ab602dbf11.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# MIT LICENSE | ||
# | ||
# Copyright 1997 - 2020 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. | ||
from uhd_restpy.base import Base | ||
from uhd_restpy.files import Files | ||
|
||
|
||
class Lacp(Base): | ||
"""Lacp Port Specific Data | ||
The Lacp class encapsulates a required lacp resource which will be retrieved from the server every time the property is accessed. | ||
""" | ||
|
||
__slots__ = () | ||
_SDM_NAME = 'lacp' | ||
_SDM_ATT_MAP = { | ||
'Count': 'count', | ||
'DescriptiveName': 'descriptiveName', | ||
'Name': 'name', | ||
'RowNames': 'rowNames', | ||
} | ||
|
||
def __init__(self, parent): | ||
super(Lacp, self).__init__(parent) | ||
|
||
@property | ||
def Count(self): | ||
""" | ||
Returns | ||
------- | ||
- number: Number of elements inside associated multiplier-scaled container object, e.g. number of devices inside a Device Group. | ||
""" | ||
return self._get_attribute(self._SDM_ATT_MAP['Count']) | ||
|
||
@property | ||
def DescriptiveName(self): | ||
""" | ||
Returns | ||
------- | ||
- str: Longer, more descriptive name for element. It's not guaranteed to be unique like -name-, but may offer more context. | ||
""" | ||
return self._get_attribute(self._SDM_ATT_MAP['DescriptiveName']) | ||
|
||
@property | ||
def Name(self): | ||
""" | ||
Returns | ||
------- | ||
- str: Name of NGPF element, guaranteed to be unique in Scenario | ||
""" | ||
return self._get_attribute(self._SDM_ATT_MAP['Name']) | ||
@Name.setter | ||
def Name(self, value): | ||
self._set_attribute(self._SDM_ATT_MAP['Name'], value) | ||
|
||
@property | ||
def RowNames(self): | ||
""" | ||
Returns | ||
------- | ||
- list(str): Name of rows | ||
""" | ||
return self._get_attribute(self._SDM_ATT_MAP['RowNames']) | ||
|
||
def update(self, Name=None): | ||
"""Updates lacp resource on the server. | ||
Args | ||
---- | ||
- Name (str): Name of NGPF element, guaranteed to be unique in Scenario | ||
Raises | ||
------ | ||
- ServerError: The server has encountered an uncategorized error condition | ||
""" | ||
return self._update(self._map_locals(self._SDM_ATT_MAP, locals())) |
Empty file.
Oops, something went wrong.