/bgp-defined-sets/community-sets/community-set/
/bgp-defined-sets/as-path-sets/as-path-set/
|
Action type is always permit for community-set and as-path-set .
In OpenConfig YANG, there is no action type concept as there is in the CLI for community-set and as-path-set . Therefore, the action type is always permit for community-set and as-path-set .
|
/bgp-defined-sets/community-sets/community-set/
/bgp-defined-sets/as-path-sets/as-path-set/
|
Action type is always permit for community-set and as-path-set.
In OpenConfig YANG, there is no action type concept as there is in the CLI for community-set and as-path-set . Therefore, the action type is always permit for community-set and as-path-set .
|
/bgp-defined-sets/community-sets/community-set/
|
In the CLI, community-list has two different types, such as standard and expanded. In the OpenConfig YANG model, community-set-name has no differentiation.
When you create the community-set-name through OpenConfig YANG, the following changes are configured:
-
The _std suffix is appended after community-set-name if community-member is in the standard form (AS:NN).
-
The _exp suffix is appended after community-set-name if community-member is in the expanded form (regex):
<community-set> <community-set-name>oc_commset1d</community-set-name>
<config>
<community-set-name>oc_commset1d</community-set-name>
<community-member>0:1</community-member>
<community-member>_1_</community-member>
</config>
</community-set>
The preceding OpenConfig YANG configuration is mapped to the following CLI:ip community-list expanded oc_commset1d_exp seq 5 permit "_1_"
ip community-list standard oc_commset1d_std seq 5 permit 0:1
|
/bgp-defined-sets/community-sets/community-set/
|
In the CLI, community-list has two different types, such as standard and expanded. In the OpenConfig YANG model, community-set-name has no differentiation.
When you create the community-set-name through OpenConfig YANG, the following changes are configured:
-
The _std suffix is appended after community-set-name if community-member is in the standard form (AS:NN).
-
The _exp suffix is appended after community-set-name if community-member is in the expanded form (regex):
<community-set> <community-set-name>oc_commset1d</community-set-name>
<config>
<community-set-name>oc_commset1d</community-set-name>
<community-member>0:1</community-member>
<community-member>_1_</community-member>
</config>
</community-set>
The preceding OpenConfig YANG configuration is mapped to the following CLI:ip community-list expanded oc_commset1d_exp seq 5 permit "_1_"
ip community-list standard oc_commset1d_std seq 5 permit 0:1
|
/bgp-conditions/match-community-set/config/community-set/
|
OpenConfig YANG can only map to one community-set , while the CLI can match to multiple instances of the community-set :
-
In the CLI:
ip community-list standard 1-1 seq 1 permit 1:1
ip community-list standard 1-2 seq 1 permit 1:2
ip community-list standard 1-3 seq 1 permit 1:3
route-map To_LC permit 10
match community 1-1 1-2 1-3
-
The corresponding OpenConfig YANG payload follows:
<config>
<routing-policy xmlns="http://openconfig.net/yang/routing-policy">
<defined-sets>
<bgp-defined-sets xmlns="http://openconfig.net/yang/bgp-policy">
<community-sets>
<community-set> <community-set-name>cs</community-set-name>
<config>
<community-set-name>cs</community-set-name>
<community-member>1:1</community-member>
<community-member>1:2</community-member>
<community-member>1:3</community-member>
</config>
</community-set>
</community-sets>
</bgp-defined-sets>
</defined-sets>
<policy-definitions>
<policy-definition>
<name>To_LC</name>
<statements>
<statement>
<name>10</name>
<conditions>
<bgp-conditions xmlns="http://openconfig.net/yang/bgp-policy">
<match-community-set>
<config>
<community-set>cs</community-set>
</config>
</match-community-set>
</bgp-conditions>
</conditions>
</statement>
</statements>
</policy-definition>
</policy-definitions>
</routing-policy>
</config>
As a workaround, you can create one community with multiple statements through OpenConfig YANG:ip community-list standard cs_std seq 5 permit 1:1
ip community-list standard cs_std seq 10 permit 1:2
ip community-list standard cs_std seq 15 permit 1:3
route-map To_LC permit 10 match community cs_std
|
/bgp-conditions/state/next-hop-in
|
In OpenConfig YANG, the next-hop-in type is an IP address, but in the CLI, it is an IP prefix. While creating the next-hop-in through OpenConfig YANG, the IP address is converted to a "/32" mask prefix in the CLI configuration. The following is an
example of next-hop-in in the OpenConfig YANG payload:<policy-definition>
<name>sc0</name>
<statements>
<statement>
<name>5</name>
<conditions>
<bgp-conditions xmlns="http://openconfig.net/yang/bgp-policy">
<config>
<next-hop-in>2.3.4.5</next-hop-in>
</config>
</bgp-conditions>
</conditions>
</statement>
</statements>
</policy-definition>
The following is an example of the same information in the CLI:ip prefix-list IPV4_PFX_LIST_OPENCONFIG_sc0_5 seq 5 permit 2.3.4.5/32
route-map sc0 permit 5 match
ip next-hop prefix-list IPV4_PFX_LIST_OPENCONFIG_sc0_5
|
/bgp-actions/set-community/config/method
|
enum "REFERENCE" is not supported
|
/bgp-actions/config/set-next-hop
|
enum "SELF" is not supported
|
/bgp-conditions/match-community-set/config/community-set
|
Get mapped only to match community
<community-set>_std , only a standard community is supported. Match to an expanded community set is not supported.
|
…/match-tag-set
|
There is a limitation in replacing match-tag-set because defined sets for tag-sets are not currently implemented.
Currently, replacing match-tag-set appends the values. To replace match-tag-set , delete it, then create it again.
|
|
|
|
|