Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

OpenConfigルーティングポリシーコマンドのJunos設定へのマッピング

メモ:

ジュニパーネットワークスEX2300、EX3400、EX4300、EX4600、EX9200スイッチ、MXシリーズ、PTXシリーズ、QFXシリーズでサポートされるデータモデルのバージョンとJunos OSリリースについては、 OpenConfigデータモデルのバージョン トピックを参照してください。

表 1 から 表 3 に、OpenConfig ルーティング ポリシー コマンドと Junos の関連構成のマッピングを示します。

表 1: 定義済みセット構成

コマンド名

OpenConfig コマンド パス

Junos の設定

プレフィックスセット

/routing-policy/defined-sets/prefix-set

set policy-options prefix-list name

ネイバー セット

/routing-policy/defined-sets/neighbor-set

set policy-options neighbor-list name

タグセット

/routing-policy/defined-sets/tag-set

set policy-options tag-list name tag-set value

表 2: BGP 定義セットの構成

コマンド名

OpenConfig コマンド パス

Junos の設定

コミュニティセット

/routing-policy/defined-sets/bgp-defined-sets/community-set

set policy-options community name members value

ASパスセット

/routing-policy/defined-sets/bgp-defined-sets/as-path-set

未対応

内線コミュニティ セット

/routing-policy/defined-sets/bgp-defined-sets/ext-community-set

set policy-options community name members value

表 3: ポリシー定義の構成

コマンド名

OpenConfig コマンド パス

Junos の設定

コマンド パスのプレフィックス:

/routing-policy/policy-definition/statements/statement

通話ポリシー

/conditions/call-policy

set policy-options policy-statement name from policy value

プレフィックスセット

/conditions/match-prefix-set/prefix-set

set policy-options policy-statement name from prefix-list name

set policy-options policy-statement name from route-filter address prefix-length-range range

マッチセットオプション

conditions {
   match-prefix-set {
      config {
         match-set-options <>
         }
      }
   }
}
policy-options {
   policy-statement <> {
       term <> {
          from {
            route-filter-list <> invert; 
          }
       }
   } 
}

に使用できる OpenConfig 値は match-set-options および any invertです。を設定 anyした場合、これはJunos OSのデフォルトの動作であるため、Junos OS変換は行われません。を設定する invertと、Junos OSマッピング設定は上記のとおりで、で終わり route-filter-list <> invert-matchます。

ネイバー セット

/conditions/match-neighbor-set/neighbor-set

set policy-options policy-statement name from neighbor address

ネイバー セットの一致

/conditions/match-neighbor-set/match-set-options

未対応

タグセット

/conditions/match-tag-set/tag-set

set policy-options policy-statement name from tag tag

マッチタグセット

/conditions/match-tag-set/match-set-options

未対応

プロトコルEQのインストール

/conditions/install-protocol-eq

set policy-options policy-statement name from protocol protocol

IGP 条件

/conditions/igp-conditions

未対応

BGP一致コミュニティセット

/conditions/bgp-conditions/match-community-set/community-set

set policy-options policy-statement name from community name

BGP Match Extコミュニティ セット

/conditions/bgp-conditions/match-ext-community-set

set policy-options policy-statement name from community name

BGP Match Extコミュニティセットオプション

/conditions/bgp-conditions/match-ext-community-set/match-set-options

未対応

BGP一致ASパスセット

/conditions/bgp-conditions/match-as-path-set

未対応

BGP MED EQ

/conditions/bgp-conditions/med-eq

set policy-options policy-statement name from metric metric

BGPオリジンEQ

/conditions/bgp-conditions/origin-eq

set policy-options policy-statement name from origin (egp | igp | incomplete)

BGP ネクストホップ

/conditions/bgp-conditions/next-hop-in

set policy-options policy-statement name from next-hop address

BGPローカルプリファレンスEQ

/conditions/bgp-conditions/local-pref-eq

set policy-options policy-statement name from local-preference preference

BGPコミュニティ数

/conditions/bgp-conditions/community-count

set policy-options policy-statement name from community-count count (equal | orhigher |orlower)

BGP AS パス長

/conditions/bgp-conditions/as-path-length

未対応

ルート受け入れ

/actions/config/accept-route

set policy-options policy-statement example-accept then accept

ルート拒否

/actions/config/reject-route

set policy-options policy-statement example-reject then reject

タグの設定

actions {
    set-tag {
         inline {
         config {
            tag <>;
         }
         }
    }
}
policy-options {
   policy-statement <> {
       term <> {
          then {
              tag  <> ;
                          }
          }
       }
   } 
}

IGPアクション

/actions/igp-actions/set-tag

set policy-options policy-statement name then tag tag

ASパスを先頭に追加するBGPアクション

/actions/bgp-actions/set-as-path-prepend

未対応

BGPアクションセットコミュニティ

/actions/bgp-actions/set-community

set policy-options policy-statement name then community (set | replace | add) name

BGPアクションセットExtコミュニティ

/actions/bgp-actions/set-ext-community

set policy-options policy-statement name then community (set | replace | add) name

BGP アクション ルート起点の設定

/actions/bgp-actions/set-route-origin

set policy-options policy-statement name then origin (egp |igp | incomplete)

BGP アクション ローカル設定の設定

/actions/bgp-actions/set-local-pref

set policy-options policy-statement name then local-preference preference

BGP アクション セット ネクスト ホップ

/actions/bgp-actions/set-next-hop

set policy-options policy-statement name then next-hop address

BGP アクション セット メッド

/actions/bgp-actions/set-med

set policy-options policy-statement name then metric metric

パス先頭としてのBGPアクション

/actions/bgp-actions/config/set-as-path-prepend/asn

set policy-options policy-statement name then as-path-prepend as-path