IOS-XR において、IGP の SPF に使用される MPLS-TE の tunnel metric を指定するには
これまで以下の2つのコマンドがありました。
RP/0/RSP0/CPU0:ASR9K(config-if)#interface tunnel-te 100
RP/0/RSP0/CPU0:ASR9K(config-if)#
RP/0/RSP0/CPU0:ASR9K(config-if)#autoroute metric ?
<1-2147483647> Set constant metric
absolute Set metric mode absolute
relative Set metric mode relative
RP/0/RSP0/CPU0:ASR9K(config-if)#autoroute announce metric ?
<1-2147483647> Set constant metric
absolute Set metric mode absolute
relative Set metric mode relative
IOS-XR 5.2.2 より、同時に設定されていた場合 "autoroute metric" での設定値を
"autoroute announce metric" で上書きするように実装の変更が行われていました。
Cisco ASR 9000 Series Aggregation Services Router MPLS Command Reference, Release 5.3.x
When the autoroute announce command is configured, the route metric of the tunnel path to the destination equals the route metric of the shortest IGP path to that destination.
The autoroute announce metric configuration overrides the autoroute metric configuration, if present.
しかし、コマンドが冗長であり、オペレーション上の問題を引き起こすため
その後、IOS-XR 6.2.2 より、"autoroute metric" は最終的に deprecated となっています。
### 6.2.2 未満
RP/0/RSP0/CPU0:IOS-XR(config)#interface tunnel-te100
RP/0/RSP0/CPU0:IOS-XR(config-if)#autoroute ?
announce Announce tunnel to IGP
destination Adds static route to destination
metric Specify MPLS tunnel metric <<<
### 6.2.2 以降
RP/0/RSP0/CPU0:IOS-XR(config)#interface tunnel-te100
RP/0/RSP0/CPU0:IOS-XR(config-if)#autoroute ?
announce Announce tunnel to IGP
destination Adds static route to destination
IOS-XR 6.2.2 以降では MPLS-TE の tunnel metric を指定する場合は、"autoroute announce metric" により設定する必要があり
それ未満のバージョンでも、"autoroute announce metric" を使用するのが推奨となります。