Skip to content

Commit 86fd456

Browse files
committed
"version 1.2.0"
1 parent 78313c6 commit 86fd456

File tree

93 files changed

+2396
-385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+2396
-385
lines changed

RELEASENOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Release Notes
2+
### April 2024
3+
* 1.2.0
4+
* support for ixnetwork version 10.00.2403.64 (10.00 Update-1)
5+
* fixed issue for batch add traffic creation.
26
### January 2024
37
* 1.1.12
48
* support ixnetwork version 10.00.2312.4 (10.00 EA)

ixnetwork_restpy/assistants/batch/batchadd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ def _handle_multivalue_xpath(self, value, xpath):
240240
xpath_dict["xpath"] = multivalue_xpath
241241
xpath_dict["auto"] = False
242242
xpath_dict["optionalEnabled"] = True
243+
xpath_dict["activeFieldChoice"] = True
243244
else:
244245
multivalue_name = pattern[0]
245246

ixnetwork_restpy/pytest_tests/.pytest_cache/v/cache/lastfailed

Lines changed: 0 additions & 10 deletions
This file was deleted.

ixnetwork_restpy/pytest_tests/.pytest_cache/v/cache/nodeids

Lines changed: 122 additions & 120 deletions
Large diffs are not rendered by default.

ixnetwork_restpy/pytest_tests/tests/batch/batch_add/test_batch_add_traffic.py

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,5 +257,61 @@ def test_batch_add_with_traffic_having_href_objects(ixnetwork):
257257
assert end_point.ScalableDestinations[0]["arg1"] == ipv4_1.href
258258

259259

260+
def test_batch_add_traffic_for_non_active_fields(ixnetwork):
261+
with BatchAdd(ixnetwork):
262+
vport = ixnetwork.Vport.add().add()
263+
vport[0].Name = "myVport_1"
264+
vport[0].RxMode = "captureAndMeasure"
265+
vport[1].Name = "myVport_2"
266+
traffic = ixnetwork.Traffic.TrafficItem
267+
tr1 = traffic.add(
268+
Name="RAW TCP",
269+
BiDirectional=False,
270+
TrafficType="raw",
271+
TrafficItemType="l2L3",
272+
)
273+
tr1.EndpointSet.add(
274+
Sources=vport[0].Protocols.add(), Destinations=vport[1].Protocols.add()
275+
)
276+
stack = tr1.ConfigElement.add().Stack.add()
277+
eth_st = stack.Ethernet.add()
278+
eth_st.SourceAddress.Single("00:11:00:00:22:00")
279+
eth_st.DestinationAddress.Single("00:33:00:11:22:00")
280+
ipv4_st = stack.Ipv4.add()
281+
ipv4_st.SrcIp.Single("1.1.1.1")
282+
ipv4_st.PriorityRaw.Single("0xb5")
283+
284+
stack.find()
285+
assert len(stack) == 3
286+
287+
# check eth values
288+
eth_fields = stack[0].Field.find()
289+
for field in eth_fields:
290+
if field.DisplayName == "Destination MAC Address":
291+
assert field.Auto is False
292+
assert field.ValueType == "singleValue"
293+
assert field.SingleValue == "00:33:00:11:22:00"
294+
elif field.DisplayName == "Source MAC Address":
295+
assert field.Auto is False
296+
assert field.ValueType == "singleValue"
297+
assert field.SingleValue == "00:11:00:00:22:00"
298+
299+
# check ip values
300+
ip_fields = stack[1].Field.find()
301+
for field in eth_fields:
302+
if field.DisplayName == "Raw priority":
303+
assert field.Auto is False
304+
assert field.OptionalEnabled is True
305+
assert field.ActiveChoiceField is True
306+
assert field.ValueType == "singleValue"
307+
assert field.SingleValue == "b5"
308+
elif field.DisplayName == "Source Address":
309+
assert field.Auto is False
310+
assert field.OptionalEnabled is True
311+
assert field.ActiveChoiceField is True
312+
assert field.ValueType == "singleValue"
313+
assert field.SingleValue == "1.1.1.1"
314+
315+
260316
if __name__ == "__main__":
261317
pytest.main(["-v", "-s", "--server", "localhost:11009:windows", __file__])

ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/bgpipv4peer/bgpipv4peer_1f7b633f7d4420fe61750b060e77eec8.py renamed to ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/bgpipv4peer/bgpipv4peer_55dbd04b8eece05365779cb1ad7445b1.py

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class BgpIpv4Peer(Base):
5252
"EnBGPFastFailoverOnLinkDown": "enBGPFastFailoverOnLinkDown",
5353
"EnLenthForPolicyNLRI": "enLenthForPolicyNLRI",
5454
"EnableAdVplsPrefixLength": "enableAdVplsPrefixLength",
55+
"EnableTraceroute": "enableTraceroute",
5556
"GSRv6SIDEncodingSubTlvType": "gSRv6SIDEncodingSubTlvType",
5657
"HighScaleRouteMode": "highScaleRouteMode",
5758
"IBgpTester4BytesAsNumber": "iBgpTester4BytesAsNumber",
@@ -67,6 +68,7 @@ class BgpIpv4Peer(Base):
6768
"Ipv6NodeAddrType": "ipv6NodeAddrType",
6869
"Ipv6SIDType": "ipv6SIDType",
6970
"LenthForPolicyNLRI": "lenthForPolicyNLRI",
71+
"MaxTtl": "maxTtl",
7072
"MldpP2mpFecType": "mldpP2mpFecType",
7173
"MplsSIDType": "mplsSIDType",
7274
"Name": "name",
@@ -82,7 +84,9 @@ class BgpIpv4Peer(Base):
8284
"PolicySegmentSubTLVTypeK": "policySegmentSubTLVTypeK",
8385
"PreferenceType": "preferenceType",
8486
"PrefixSIDAttrType": "prefixSIDAttrType",
87+
"ProbeInterval": "probeInterval",
8588
"ProtoclIdType": "protoclIdType",
89+
"QueryCount": "queryCount",
8690
"RemoteEndpointType": "remoteEndpointType",
8791
"RequestVpnLabelExchangeOverLsp": "requestVpnLabelExchangeOverLsp",
8892
"ReverseBindingType": "reverseBindingType",
@@ -102,6 +106,7 @@ class BgpIpv4Peer(Base):
102106
"UseUnicastDestMacForBierTraffic": "useUnicastDestMacForBierTraffic",
103107
"VPNSIDType": "vPNSIDType",
104108
"VrfRouteImportExtendedCommunitySubType": "vrfRouteImportExtendedCommunitySubType",
109+
"WaitTime": "waitTime",
105110
"WeightType": "weightType",
106111
}
107112
_SDM_ENUM_MAP = {
@@ -392,6 +397,20 @@ def EnableAdVplsPrefixLength(self):
392397
self, self._get_attribute(self._SDM_ATT_MAP["EnableAdVplsPrefixLength"])
393398
)
394399

400+
@property
401+
def EnableTraceroute(self):
402+
# type: () -> 'Multivalue'
403+
"""
404+
Returns
405+
-------
406+
- obj(ixnetwork_restpy.multivalue.Multivalue): This will enable the traceroute functionality on all the BGP peers configured in this port.
407+
"""
408+
from ixnetwork_restpy.multivalue import Multivalue
409+
410+
return Multivalue(
411+
self, self._get_attribute(self._SDM_ATT_MAP["EnableTraceroute"])
412+
)
413+
395414
@property
396415
def GSRv6SIDEncodingSubTlvType(self):
397416
# type: () -> 'Multivalue'
@@ -600,6 +619,18 @@ def LenthForPolicyNLRI(self):
600619
self, self._get_attribute(self._SDM_ATT_MAP["LenthForPolicyNLRI"])
601620
)
602621

622+
@property
623+
def MaxTtl(self):
624+
# type: () -> 'Multivalue'
625+
"""
626+
Returns
627+
-------
628+
- obj(ixnetwork_restpy.multivalue.Multivalue): The TTL value used in the probes will start from 1 and incremented up to this value.
629+
"""
630+
from ixnetwork_restpy.multivalue import Multivalue
631+
632+
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP["MaxTtl"]))
633+
603634
@property
604635
def MldpP2mpFecType(self):
605636
# type: () -> 'Multivalue'
@@ -809,6 +840,18 @@ def PrefixSIDAttrType(self):
809840
self, self._get_attribute(self._SDM_ATT_MAP["PrefixSIDAttrType"])
810841
)
811842

843+
@property
844+
def ProbeInterval(self):
845+
# type: () -> 'Multivalue'
846+
"""
847+
Returns
848+
-------
849+
- obj(ixnetwork_restpy.multivalue.Multivalue): Time interval in milliseconds between each probe per hop.
850+
"""
851+
from ixnetwork_restpy.multivalue import Multivalue
852+
853+
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP["ProbeInterval"]))
854+
812855
@property
813856
def ProtoclIdType(self):
814857
# type: () -> 'Multivalue'
@@ -821,6 +864,18 @@ def ProtoclIdType(self):
821864

822865
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP["ProtoclIdType"]))
823866

867+
@property
868+
def QueryCount(self):
869+
# type: () -> 'Multivalue'
870+
"""
871+
Returns
872+
-------
873+
- obj(ixnetwork_restpy.multivalue.Multivalue): Maximum number of paths that can be discovered.
874+
"""
875+
from ixnetwork_restpy.multivalue import Multivalue
876+
877+
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP["QueryCount"]))
878+
824879
@property
825880
def RemoteEndpointType(self):
826881
# type: () -> 'Multivalue'
@@ -1083,6 +1138,18 @@ def VrfRouteImportExtendedCommunitySubType(self):
10831138
),
10841139
)
10851140

1141+
@property
1142+
def WaitTime(self):
1143+
# type: () -> 'Multivalue'
1144+
"""
1145+
Returns
1146+
-------
1147+
- obj(ixnetwork_restpy.multivalue.Multivalue): Time in milliseconds to wait for a response.
1148+
"""
1149+
from ixnetwork_restpy.multivalue import Multivalue
1150+
1151+
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP["WaitTime"]))
1152+
10861153
@property
10871154
def WeightType(self):
10881155
# type: () -> 'Multivalue'
@@ -1182,6 +1249,7 @@ def get_device_ids(
11821249
EnBGPFastFailoverOnLinkDown=None,
11831250
EnLenthForPolicyNLRI=None,
11841251
EnableAdVplsPrefixLength=None,
1252+
EnableTraceroute=None,
11851253
GSRv6SIDEncodingSubTlvType=None,
11861254
HighScaleRouteMode=None,
11871255
IBgpTester4BytesAsNumber=None,
@@ -1197,6 +1265,7 @@ def get_device_ids(
11971265
Ipv6NodeAddrType=None,
11981266
Ipv6SIDType=None,
11991267
LenthForPolicyNLRI=None,
1268+
MaxTtl=None,
12001269
MldpP2mpFecType=None,
12011270
MplsSIDType=None,
12021271
PeerAdjSidType=None,
@@ -1211,7 +1280,9 @@ def get_device_ids(
12111280
PolicySegmentSubTLVTypeK=None,
12121281
PreferenceType=None,
12131282
PrefixSIDAttrType=None,
1283+
ProbeInterval=None,
12141284
ProtoclIdType=None,
1285+
QueryCount=None,
12151286
RemoteEndpointType=None,
12161287
RequestVpnLabelExchangeOverLsp=None,
12171288
ReverseBindingType=None,
@@ -1229,6 +1300,7 @@ def get_device_ids(
12291300
UseUnicastDestMacForBierTraffic=None,
12301301
VPNSIDType=None,
12311302
VrfRouteImportExtendedCommunitySubType=None,
1303+
WaitTime=None,
12321304
WeightType=None,
12331305
):
12341306
"""Base class infrastructure that gets a list of bgpIpv4Peer device ids encapsulated by this object.
@@ -1253,6 +1325,7 @@ def get_device_ids(
12531325
- EnBGPFastFailoverOnLinkDown (str): optional regex of enBGPFastFailoverOnLinkDown
12541326
- EnLenthForPolicyNLRI (str): optional regex of enLenthForPolicyNLRI
12551327
- EnableAdVplsPrefixLength (str): optional regex of enableAdVplsPrefixLength
1328+
- EnableTraceroute (str): optional regex of enableTraceroute
12561329
- GSRv6SIDEncodingSubTlvType (str): optional regex of gSRv6SIDEncodingSubTlvType
12571330
- HighScaleRouteMode (str): optional regex of highScaleRouteMode
12581331
- IBgpTester4BytesAsNumber (str): optional regex of iBgpTester4BytesAsNumber
@@ -1268,6 +1341,7 @@ def get_device_ids(
12681341
- Ipv6NodeAddrType (str): optional regex of ipv6NodeAddrType
12691342
- Ipv6SIDType (str): optional regex of ipv6SIDType
12701343
- LenthForPolicyNLRI (str): optional regex of lenthForPolicyNLRI
1344+
- MaxTtl (str): optional regex of maxTtl
12711345
- MldpP2mpFecType (str): optional regex of mldpP2mpFecType
12721346
- MplsSIDType (str): optional regex of mplsSIDType
12731347
- PeerAdjSidType (str): optional regex of peerAdjSidType
@@ -1282,7 +1356,9 @@ def get_device_ids(
12821356
- PolicySegmentSubTLVTypeK (str): optional regex of policySegmentSubTLVTypeK
12831357
- PreferenceType (str): optional regex of preferenceType
12841358
- PrefixSIDAttrType (str): optional regex of prefixSIDAttrType
1359+
- ProbeInterval (str): optional regex of probeInterval
12851360
- ProtoclIdType (str): optional regex of protoclIdType
1361+
- QueryCount (str): optional regex of queryCount
12861362
- RemoteEndpointType (str): optional regex of remoteEndpointType
12871363
- RequestVpnLabelExchangeOverLsp (str): optional regex of requestVpnLabelExchangeOverLsp
12881364
- ReverseBindingType (str): optional regex of reverseBindingType
@@ -1300,6 +1376,7 @@ def get_device_ids(
13001376
- UseUnicastDestMacForBierTraffic (str): optional regex of useUnicastDestMacForBierTraffic
13011377
- VPNSIDType (str): optional regex of vPNSIDType
13021378
- VrfRouteImportExtendedCommunitySubType (str): optional regex of vrfRouteImportExtendedCommunitySubType
1379+
- WaitTime (str): optional regex of waitTime
13031380
- WeightType (str): optional regex of weightType
13041381
13051382
Returns

0 commit comments

Comments
 (0)