Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

set_routing_instance() Function (Python)

Syntax

Description

Use to program the protocol software (TCP/UDP) to use non-default routing instances. You can use this function in op scripts and on-box Juniper Extension Toolkit (JET) applications.

Note:

In Junos OS Release 19.3R1, this feature is supported only on 32-bit architecture.

Starting in Junos OS Release 19.4R1, this feature is also supported on 64-bit architecture.

Parameters

routing-instance-name

String specifying the routing instance through which the connection is made.

Usage Examples

The following Python script uses the jcs.set_routing_instance() function to connect to a device through a non-default routing instance. In the script, you must set the non-default routing instance before you connect to the device.

Python script:

Release Information

Function introduced in Junos OS Release 19.3R1 on MX Series routers.