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 은 Junos의 관련 구성에 대한 OpenConfig 라우팅 정책 명령의 매핑을 보여줍니다.

표 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

지원되지 않음

Ext 커뮤니티 세트

/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; 
          }
       }
   } 
}

에 사용할 수 있는 match-set-options OpenConfig 값은 다음과 같습니다 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 Community Set 옵션

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

지원되지 않음

BGP Match AS 경로 집합

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

지원되지 않음

BGP MED 이퀄라이저

/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

BGP 작업 AS 경로 앞에 설정

/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 작업 Set Ext Community

/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 작업(BGP Actions) 로컬 기본 설정 지정

/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 작업 Set Med

/actions/bgp-actions/set-med

set policy-options policy-statement name then metric metric

BGP 작업 As-Path-Prepend

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

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