OcNOS-SP : Segment Routing Guide : Segment Routing Command Reference : Segment Routing Service Mapping Commands
Segment Routing Service Mapping Commands
This chapter describes each segment routing command.
color
color
Use this command to set color value for a tunnel policy. This value will be used while selecting transport for given service.
Use the no parameter with this command to un-configure color value for tunnel policy.
Command Syntax
color <1-4294967295>
no color <1-4294967295>
Parameters
<1-4294967295>
Color value
Command Mode
Tunnel policy mode
Applicability
This command was introduced in OcNOS version 5.1.
Example
#configure terminal
(config)#tunnel-policy policy1
(config-tnl-policy)#color 2
 
(config)#tunnel-policy policy1
(config-tnl-policy)#no color 2
 
tunnel-select-policy
Use this command to set tunnel-policy for a VRF instance. This will be used while selecting transport for the peer.
Use the no parameter with this command to un-configure tunnel selection policy.
Command Syntax
tunnel-select-policy TNLPOLICYNAME
no tunnel-select-policy
Parameters
TNLPOLICYNAME
Name of tunnel policy
Command Mode
VRF mode
Applicability
This command was introduced in OcNOS version 5.1.
Example
#configure terminal
(config)#ip vrf vrf1
(config-vrf)#tunnel-select-policy p1
(config-vrf)#commit
(config-vrf)#
(config)#ip vrf vrf1
(config-vrf)#no tunnel-select-policy
(config-vrf)#commit
(config-vrf)#
tunnel-policy
Use this command to create a tunnel policy.
Use the no parameter with this command to un-configure the tunnel policy. Tunnel policy can be un-configured only if no service is using.
Command Syntax
tunnel-policy NAME
no tunnel-policy NAME
Parameters
NAME
Name to be used for tunnel policy
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 5.1.
Example
#configure terminal
(config)#tunnel-policy policy1
 
#configure terminal
(config)#no tunnel-policy policy1
 
 
show running-config tunnel-policy
Use this command to display the current running configuration of all tunnel policies.
Command Syntax
show running-config tunnel-policy
Parameters
None
Defaults
NA
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 5.1.
Example
#show running-config tunnel-policy
!
tunnel-policy tp
color1
!