Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ixnetwork.Timeline.CreateTest(Arg2="rfc2544back2back", Arg3="none") returns error #64

Open
hshakaryan opened this issue Apr 14, 2022 · 0 comments

Comments

@hshakaryan
Copy link

"""Demonstrates creating ospfv2 devices

"""
from ixnetwork_restpy import SessionAssistant

session_assistant = SessionAssistant(
UserName="admin",
Password="admin",
LogLevel=SessionAssistant.LOGLEVEL_INFO,
ClearConfig=True,
)
ixnetwork = session_assistant.Ixnetwork

ipv41 = (
ixnetwork.Topology.add(Vports=ixnetwork.Vport.add())
.DeviceGroup.add(Name="Dg West")
.Ethernet.add()
.Ipv4.add(Name="Ipv4 West")
)

ipv42 = (
ixnetwork.Topology.add(Vports=ixnetwork.Vport.add())
.DeviceGroup.add(Name="Dg East")
.Ethernet.add()
.Ipv4.add(Name="Ipv4 East")
)

traffic = ixnetwork.Traffic.TrafficItem.add(Name="West -> East", TrafficType="ipv4")
traffic.EndpointSet.add(Sources=ipv41, Destinations=ipv42)

test_details = ixnetwork.Timeline.CreateTest(Arg2="rfc2544back2back", Arg3="none")
print(test_details)
test = ixnetwork.parent.GetObjectFromHref(test_details["arg1"])
test.TrafficItemIds = traffic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant