We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"""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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
"""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
The text was updated successfully, but these errors were encountered: