OpenIxia / IxNetwork

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

Route range endpoint not selected in traffic destinations #144

Closed gregoirehamon closed 2 months ago

gregoirehamon commented 8 months ago

Hello, I'm using IxNetwork 9.20 and I have a problem when I want to add a specific route range as an endpoint. It doesn't get added even though the method used is the same as for an interface or a neighbor range, see code below (consider the vports and interfaces declaration are good) :

interface_vp1 = ix_session.Vport.find(Name="Vport1").Interface.add(Description="INT_TEST1") # Enabled=True interface_vp2 = ix_session.Vport.find(Name="Vport2").Interface.add(Description="INT_TEST2") # Enabled=True

neighbor_range = ix_session.Vport.find().Protocols.Bgp.NeighborRange.add(Type="external", Interfaces=interface_vp1, DutIpAddress="10.90.90.1", LocalIpAddress=65500, BgpId="130.0.0.1", Enabled=True)

route_range = ix_session.Vport.find().Protocols.Bgp.NeighborRange.find().RouteRange.add(IpType="ipv4", NumRoutes=20, NetworkAddress="20.20.20.1", FromPrefix=32, ThruPrefix=32, Enabled=True)

traffic_item = ix_session.Traffic.TrafficItem.add(Name="TEST_TRAFFIC", BiDirectional=True, TrafficType="IPv4", SrcDestMesh="manyToMany", RouteMesh="fullMesh" Enabled=True)

endpoint_set = traffic_item.EndpointSet.add(Sources=[interface_vp1], Destinations=[route_range])

traffic_item.ConfigElement.find().FrameRate.update(Type='bitsPerSecond', Rate=5000, BitRateUnitsType="mbitsPerSec") traffic_item.ConfigElement.find().FrameSize.FixedSize = 1492 traffic_item.Tracking.find().TrackBy = ["trackingenabled0"]

When I do this, I have the following configuration for my endpoints : image

As you can see, evrything is good except that I don't have a selected endpoint destination. And if I take a look at the web documentation, I can see that my endpoint actually is in the destinations list : image

However, when I select the route range myself in ixnetwork : image

It works and the web API page is exactly the same : image

So I'm a bit lost here. I'm trying to intercept the requests made by the program to spot a difference between the requests sent by my program and by IxNetwork itself. And I can't bypass it by using the neighbor range because if I have another route range, even if it's not enabled, it will appear on my statistics and I don't want that.

therkong commented 8 months ago

Hi Greg, I’m from tech support team. This needs to be investigated. Can you open a support ticket? You can do that by sending email to @.**@.> with your ixNetwork activation code/license info. Thanks.

Regards,

Theresa Kong Applications Engineer KTAS | Keysight Technical and Applications Support Keysight Technologies

From: gregoirehamon @.> Sent: Tuesday, March 26, 2024 6:39 AM To: OpenIxia/IxNetwork @.> Cc: Subscribed @.***> Subject: [OpenIxia/IxNetwork] Route range endpoint not selected in traffic destinations (Issue #144)

Hello, I'm using IxNetwork 9. 20 and I have a problem when I want to add a specific route range as an endpoint. It doesn't get added even though the method used is the same as for an interface or a neighbor range, see code below (consider the ZjQcmQRYFpfptBannerStart This Message is From an External Sender: Use caution opening files, clicking links or responding to requests. ZjQcmQRYFpfptBannerEnd

Hello, I'm using IxNetwork 9.20 and I have a problem when I want to add a specific route range as an endpoint. It doesn't get added even though the method used is the same as for an interface or a neighbor range, see code below (consider the vports and interfaces declaration are good) :

interface_vp1 = ix_session.Vport.find(Name="Vport1).Interface.add(Description="INT_TEST1") # Enabled=True

interface_vp2 = ix_session.Vport.find(Name="Vport2").Interface.add(Description="INT_TEST2") # Enabled=True

neighbor_range = ix_session.Vport.find().Protocols.Bgp.NeighborRange.add(Type="external",

                                                                                                                      Interfaces=interface_vp1,

                                                                                                                      DutIpAddress="10.90.90.1",

                                                                                                                      LocalIpAddress=65500,

                                                                                                                      BgpId="130.0.0.1",

                                                                                                                      Enabled=True)

route_range = ix_session.Vport.find().Protocols.Bgp.NeighborRange.find().RouteRange.add(IpType="ipv4",

                                                                                                                                              NumRoutes=20,

                                                                                                                                              NetworkAddress="20.20.20.1",

                                                                                                                                              FromPrefix=32,

                                                                                                                                              ThruPrefix=32,

                                                                                                                                              Enabled=True

                                                                                                                                              )

traffic_item = ix_session.Traffic.TrafficItem.add(Name="TEST_TRAFFIC",

                                                                      BiDirectional=True,

                                                                      TrafficType="IPv4",

                                                                      SrcDestMesh="manyToMany",

                                                                      RouteMesh="fullMesh"

                                                                      Enabled=True)

endpoint_set = traffic_item.EndpointSet.add(Sources=[interface_vp1], Destinations=[route_range])

traffic_item.ConfigElement.find().FrameRate.update(Type='bitsPerSecond', Rate=5000, BitRateUnitsType="mbitsPerSec")

traffic_item.ConfigElement.find().FrameSize.FixedSize = 1492

traffic_item.Tracking.find().TrackBy = ["trackingenabled0"]

traffic_item.Enabled = False

When I do this, I have the following configuration for my endpoints : image.png (view on web)https://urldefense.com/v3/__https:/github.com/OpenIxia/IxNetwork/assets/165015671/928c8d8b-433c-4cf0-b888-30f500640c03__;!!I5pVk4LIGAfnvw!jALGWwtT3zRYzyTdHrKytue_1SSL3ezhqo5pePIXmoPM9th41BKlMSlB6WDMxZqGc0afXZGXq79xojGBZMspmq4UEmBG$

As you can see, evrything is good except that I don't have a selected endpoint destination. And if I take a look at the web documentation, I can see that my endpoint actually is in the destinations list : image.png (view on web)https://urldefense.com/v3/__https:/github.com/OpenIxia/IxNetwork/assets/165015671/80e97ac3-089b-44e0-86b1-b9c5c00a0696__;!!I5pVk4LIGAfnvw!jALGWwtT3zRYzyTdHrKytue_1SSL3ezhqo5pePIXmoPM9th41BKlMSlB6WDMxZqGc0afXZGXq79xojGBZMspmpFcUuCV$

However, when I select the route range myself in ixnetwork, it works and the web API page is exactly the same : image.png (view on web)https://urldefense.com/v3/__https:/github.com/OpenIxia/IxNetwork/assets/165015671/2e05912b-ccb4-47ae-9834-e6e1ceb0c514__;!!I5pVk4LIGAfnvw!jALGWwtT3zRYzyTdHrKytue_1SSL3ezhqo5pePIXmoPM9th41BKlMSlB6WDMxZqGc0afXZGXq79xojGBZMspmj9jAkUU$

So I'm a bit lost here. I'm trying to intercept the requests made by the program to spot a difference between the requests sent by my program and by IxNetwork itself `

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/OpenIxia/IxNetwork/issues/144__;!!I5pVk4LIGAfnvw!jALGWwtT3zRYzyTdHrKytue_1SSL3ezhqo5pePIXmoPM9th41BKlMSlB6WDMxZqGc0afXZGXq79xojGBZMspmmqysRKm$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AIRRUUMCBOFMXNXT3AZZCGDY2FT75AVCNFSM6AAAAABFI6QHASVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYDQMRYGYZTQMI__;!!I5pVk4LIGAfnvw!jALGWwtT3zRYzyTdHrKytue_1SSL3ezhqo5pePIXmoPM9th41BKlMSlB6WDMxZqGc0afXZGXq79xojGBZMspmqXr-_tO$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

gregoirehamon commented 8 months ago

Hello, can I find the activation via the software IxNetwork directly or is it something sent to like the administrator oh the company where I work ? Also, I've edited my message because I confused myself when writing the test set for the example and forgot the ".find" after the ".find().Protocols" but it's not the case in my real code.

Best regards, Gregoire

therkong commented 8 months ago

If you send an email to @.**@.>, our support L1 team will guide you in finding the necessary information if you don’t provide one.

Regards,

Theresa Kong Applications Engineer KTAS | Keysight Technical and Applications Support Keysight Technologies

From: gregoirehamon @.> Sent: Tuesday, March 26, 2024 9:14 AM To: OpenIxia/IxNetwork @.> Cc: Theresa Kong @.>; Comment @.> Subject: Re: [OpenIxia/IxNetwork] Route range endpoint not selected in traffic destinations (Issue #144)

Hello, can I find the activation via the software IxNetwork directly or is it something sent to like the administrator oh the company where I work ? Also, I've edited my message because I confused myself when writing the test set for the example ZjQcmQRYFpfptBannerStart This Message is From an External Sender: Use caution opening files, clicking links or responding to requests. ZjQcmQRYFpfptBannerEnd

Hello, can I find the activation via the software IxNetwork directly or is it something sent to like the administrator oh the company where I work ? Also, I've edited my message because I confused myself when writing the test set for the example and forgot the ".find" after the ".find().Protocols" but it's not the case in my real code.

Best regards, Gregoire

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/OpenIxia/IxNetwork/issues/144*issuecomment-2020861787__;Iw!!I5pVk4LIGAfnvw!lavBKyqxoryS80tTlv7w9EPTXyc0f0CJ5sgVHxXSz4e5DJm9ERrWEemfYExHEDdD3_cwP51rnYMz6rzEvNqB60mh5w5V$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AIRRUUMTZNVE3M43DGOG6TDY2GGFFAVCNFSM6AAAAABFI6QHASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRQHA3DCNZYG4__;!!I5pVk4LIGAfnvw!lavBKyqxoryS80tTlv7w9EPTXyc0f0CJ5sgVHxXSz4e5DJm9ERrWEemfYExHEDdD3_cwP51rnYMz6rzEvNqB6462i9c8$. You are receiving this because you commented.Message ID: @.***>

gregoirehamon commented 8 months ago

The email address isn't visible on my part, see image below image

hubogee commented 2 months ago

For support issues, please send an email to support.ix@keysight.com. Someone from the support team will be with you shortly. Thanks.