RSVP TE Wizard Functions¶
emulation rsvp te wizard port config¶
Execute Tester Command ${rt_handle} command=test_control <additional key=value arguments>
- Purpose:
- The emulation rsvp te wizard port config command is used to configure DUT to port connections.
Synopsis:
Note: M indicates that the argument is `Mandatory`.
emulation rsvp te wizard port config
mode= {create|delete} M
port_handle= {port_handle}
dut_ipv4_addr= <a.b.c.d>
dut_ipv4_addr_step= <a.b.c.d>
ipv4_prefix_length= <1-32>
sub_intf_count= <1-65535>
sub_intf_enable= {true|false}
vlan_id= <0-4095>
vlan_id_step= <integer>
port_side= {right_side|left_side}
Arguments:
mode
Specifies the action to be performed on the test port.
This argument is `Mandatory`. Possible values are create,
and delete. The values are described below::
create - Creates the port mentioned in the port_side
delete - Deletes the created port
port_handle
Specifies the port on which to create the port_side specified.
This argument is `Mandatory` only for create mode.
dut_ipv4_addr
Defines the DUT IPv4 Address
dut_ipv4_addr_step
Defines the DUT IPv4 Address Step
ipv4_prefix_length
Defines the Prefix Length
sub_intf_count
Defines the SubInterface Count
sub_intf_enable
Defines the SubInterface Count
The default value is false.
vlan_id
Defines the Virtual LAN (VLAN) ID of the first VLAN
subinterface
vlan_id_step
Specifies the increment to use for generating additional VLAN
IDs
port_side
Mode for adjusting the frame size from iteration to iteration.
The possible values are custom, random, or step. The default value
is custom.
- Return Values:
The function returns a key (with corresponding data):
status Success (1) or failure (0) of the operation log An error message (if the operation failed)
- Examples:
To create an RSVP DUT Port Connections:
set rsvp_port_config_1 [::emulation rsvp te wizard port config mode= create port_handle= $port1 dut_ipv4_addr= 190.0.0.1 dut_ipv4_addr_step= 0.0.0.1 ipv4_prefix_length= 8 port_side= left_side ]
Sample Output:
{status 1}
End of Procedure Header
emulation rsvp te wizard config¶
Execute Tester Command ${rt_handle} command=test_control <additional key=value arguments>
- Purpose:
- The emulation rsvp te wizard config command is used to configure RSVP network Topologies.
Synopsis:
Note: M indicates the argument is `Mandatory`.
emulation rsvp te wizard config
mode= {create|delete} M
rsvp_tunnel_type= {p2p | p2multipoint}
rsvp_topology_type= {path_resv | transit}
rsvp_tunnel_distribution= {backbone | pair | uni_dir}
enable_tunnel_block= {true | false}
igp_protocol= {isis | ospf | none}
igp_router_topology_type= {grid | tree}
dut_loopback_ip_addr= <a.b.c.d>
enable_intermediate_lsr= {true | false}
enable_ingress_lsr= {true | false}
enable_egress_lsr= {true | false}
intermediate_lsr_intf_ip_addr= <a.b.c.d>
intermediate_lsr_count_per_sub_intf= <1-100>
intermediate_lsr_prefix_length= <1-32>
intermediate_lsr_loopback_ip_addr= <a.b.c.d>
intermediate_lsr_loopback_step_ip_addr= <a.b.c.d>
no_of_edge_rtr_cnt_per_intermediate_lsr= <1 - 20000>
edge_rtr_cnt_per_sub_intf= <1 - 100>
edge_rtr_tunnels_per_edge_lsr= <1 - 32000>
total_no_of_tunnels= <1 - 20000>
route_count= <2 - 4294967295>
head_starting_route= <1-32>
head_prefix= <a.b.c.d>
head_incr= <a.b.c.d>
tail_starting_route= <1-32>
tail_prefix= <a.b.c.d>
tail_incr= <a.b.c.d>
start_lsp_id= <NUMERIC>
tunnel_id= <NUMERIC>
tunnel_id_increment= <NUMERIC>
lsp_id_step_for_tunnel_blk= <NUMERIC>
stream_block_group_method= {agg | tunnel}
load_percent_ports= <0 -100>
frame_size= <12 - 16383>
enable_traffic= {true | false}
enable_ero= {true | false}
Arguments:
mode
Specifies the action to be performed on the test port.
This argument is `Mandatory`. Possible values are create,
and delete. The values are described below::
create - Creates the port mentioned in the port_side
delete - Deletes the created port
rsvp_tunnel_type
Specifies the RSVP Tunnel Type
rsvp_topology_type
Specifies the RSVPTE Topology
rsvp_tunnel_distribution
Specifies the RSVPTE Tunnel Distribution
rsvp_tunnel_direction
Specifies the RSVPTE Tunnel Direction
enable_tunnel_block
Specifies whether to enable tunnel block. The default value
is true.
igp_protocol
Specifies the IGP protocol. The possible values are isis, ospf.
igp_router_topology_type
Specifies the router toplolgy. The possible values are grid or tree.
dut_loopback_ip_addr
Specifies the DUT loopback IP address
enable_intermediate_lsr
Specifies whether to enable intermediate LSR. The default value is false.
enable_egress_lsr
Specifies whether to enable ingress intermediate LSR. The default value is true.
enable_ingress_lsr
Specifies whether to enable egress intermediate LSR. The default value is true.
intermediate_lsr_intf_ip_addr
Specifies the intermediate LSR interface address on simulated router
intermediate_lsr_count_per_sub_intf
Specifies the intermediate LSRs per port/subinterface
intermediate_lsr_prefix_length
Specifies the intermediate LSR prefix length
intermediate_lsr_loopback_ip_addr
Specifies the intermediate LSR loopback IPv4 address
intermediate_lsr_loopback_step_ip_addr
Specifies the intermediate LSR loopback IP addr step
no_of_edge_rtr_cnt_per_intermediate_lsr
Specifies the number of LERs per intermediate LSR
edge_rtr_cnt_per_sub_intf
Specifies the number of LERs per subinterface
edge_rtr_tunnels_per_edge_lsr
Specifies the number of tunnels per edge LSR
total_no_of_tunnels
Specifies the tunnel blocks per edge LSR
route_count
Specifies the route count
head_starting_route
Specifies the starting IP address for head end
head_prefix
Specifies the prefix length
head_incr
Specifies the values by which the head_starting_route will be incremented
tail_starting_route
Specifies the starting ip address for tail end
tail_prefix
Specifies the prefix length
tail_incr
Specifies the values by which the tail_starting_route will be incremented
start_lsp_id
Specifies the starting LSP id.
tunnel_id
Specifies the tunnel id.
tunnel_id_increment
Specifies the value by which the tunnel_id will be incremented.
lsp_id_step_for_tunnel_blk
Specifies the LSP id step for tunnel Block
stream_block_group_method
Specifies the stream block group method. The possible values are agg, tunnel.
load_percent_ports
Specifies the traffic load percent from ports
frame_size
Specifies the frame size
enable_traffic
Specifies whether the traffic needs to enabled or not. The default value is true.
enable_ero
Specifies whether to ERO(explicit routing object) needs to be enabled or not.
The default value is true.
- Return Values:
Depending on the specific language that HLTAPI uses, the function returns a keyed list/dictionary/hash (See Introduction for more information on return value formats) using the following keys (with corresponding data):
device_handles Routers created by the wizard stream_id Streamblocks created by the wizard RSVP_Ingress_Tunnel LSP ingress tunnel created by the wizard RSVP_Egress_Tunnel LSP ingress tunnel created by the wizard status Success (1) or failure (0) of the operation log An error message (if the operation failed).
Examples:
The following example starts all current configured tests at the same time and does not do the cleanup action when the tests stop:
set rsvp_te_wizard_config [emulation rsvp te wizard config mode= create rsvp_topology_type= transit rsvp_tunnel_distribution= pair enable_tunnel_block= false igp_protocol= ospf igp_router_topology_type= grid dut_loopback_ip_addr= 1.1.1.1 intermediate_lsr_intf_ip_addr= 1.0.0.1 intermediate_lsr_count_per_sub_intf= 1 intermediate_lsr_prefix_length= 24 intermediate_lsr_loopback_ip_addr= 190.0.0.2 intermediate_lsr_loopback_step_ip_addr= 1.0.0.0 no_of_edge_rtr_cnt_per_intermediate_lsr= 10 route_count= 20 head_starting_route= 10.1.1.0 head_prefix= 24 head_incr= 0.0.1.0 tail_starting_route= 100.1.1.0 tail_prefix= 24 tail_incr= 0.0.1.0 start_lsp_id= 1 tunnel_id= 1 tunnel_id_increment= 1 lsp_id_step_for_tunnel_blk= 1 load_percent_ports= 10 frame_size= 1280 enable_traffic= true enable_ero= false
]
Sample output for the example shown above:
{device_handles {router1 router2}} {stream_id {streamblock1 streamblock2}} {RSVP_Ingress_Tunnel {rsvpingresstunnelparams1 rsvpingresstunnelparams2 rsvpingresstunnelparams3 rsvpingresstunnelparams4 rsvpingresstunnelparams5 rsvpingresstunnelparams6 rsvpingresstunnelparams7 rsvpingresstunnelparams8 rsvpingresstunnelparams9 rsvpingresstunnelparams10 rsvpingresstunnelparams11 rsvpingresstunnelparams12 rsvpingresstunnelparams13 rsvpingresstunnelparams14 rsvpingresstunnelparams15 rsvpingresstunnelparams16 rsvpingresstunnelparams17 rsvpingresstunnelparams18 rsvpingresstunnelparams19 rsvpingresstunnelparams20}} {RSVP_Egress_Tunnel {rsvpegresstunnelparams1 rsvpegresstunnelparams2 rsvpegresstunnelparams3 rsvpegresstunnelparams4 rsvpegresstunnelparams5 rsvpegresstunnelparams6 rsvpegresstunnelparams7 rsvpegresstunnelparams8 rsvpegresstunnelparams9 rsvpegresstunnelparams10 rsvpegresstunnelparams11 rsvpegresstunnelparams12 rsvpegresstunnelparams13 rsvpegresstunnelparams14 rsvpegresstunnelparams15 rsvpegresstunnelparams16 rsvpegresstunnelparams17 rsvpegresstunnelparams18 rsvpegresstunnelparams19 rsvpegresstunnelparams20}} {status 1}End of Procedure Header