static_route_bgp_redistribution_test - openconfig/featureprofiles GitHub Wiki
- Static routes selected for redistribution base on combination of: prefix-set, set-tag
- MED set to value of metric of static route (metric propagation)
- AS-Path prepend to contain AS with value provided in configuration (repeat prepend 'n' times)
- Local-Preference to a value provided in configuration
- Community list set to defined community set
- BGP protocol next-hop set to value provided in configuration
- Redstribute static-route with "DROP" as the next-hop
-
Connect DUT port-1, 2 and 3 to ATE port-1, 2 and 3 respectively
-
Configure IPv4 and IPv6 addresses on DUT and ATE ports as shown below
-
DUT port-1 IPv4 address
dp1-v4 = 192.168.1.1/30
-
ATE port-1 IPv4 address
ap1-v4 = 192.168.1.2/30
-
DUT port-2 IPv4 address
dp2-v4 = 192.168.1.5/30
-
ATE port-2 IPv4 address
ap2-v4 = 192.168.1.6/30
-
DUT port-3 IPv4 address
dp3-v4 = 192.168.1.9/30
-
ATE port-3 IPv4 address
ap3-v4 = 192.168.1.10/30
-
DUT port-1 IPv6 address
dp1-v6 = 2001:DB8::1/126
-
ATE port-1 IPv6 address
ap1-v6 = 2001:DB8::2/126
-
DUT port-2 IPv6 address
dp2-v6 = 2001:DB8::5/126
-
ATE port-2 IPv6 address
ap2-v6 = 2001:DB8::6/126
-
DUT port-3 IPv6 address
dp3-v6 = 2001:DB8::9/126
-
ATE port-3 IPv6 address
ap3-v6 = 2001:DB8::10/126
-
-
Create two IPv4 networks i.e.
ipv4-network = 192.168.10.0/24
andipv4-drop-network = 192.168.20.0/24
attached to ATE port-2 -
Create two IPv6 networks i.e.
ipv6-network = 2024:db8:128:128::/64
andipv6-drop-network = 2024:db8:64:64::/64
attached to ATE port-2 -
Configure IPv4 and IPv6 eBGP session between ATE port-1 and DUT port-1
- ATE ASN = 64511
- DUT ASN = 64512
- /network-instances/network-instance/protocols/protocol/bgp/global/config
- /network-instances/network-instance/protocols/protocol/bgp/global/afi-safis/afi-safi/config/
- /network-instances/network-instance/protocols/protocol/bgp/global/afi-safis/afi-safi/config/send-community-type =
STANDARD
-
Configure IPv4 and IPv6 iBGP session between ATE port-3 and DUT port-3
- ATE ASN = 64512
- DUT ASN = 64512
- /network-instances/network-instance/protocols/protocol/bgp/global/config
- /network-instances/network-instance/protocols/protocol/bgp/global/afi-safis/afi-safi/config/
- /network-instances/network-instance/protocols/protocol/bgp/global/afi-safis/afi-safi/config/send-community-type =
STANDARD
-
On the DUT advertise networks of
dp2-v4
i.e.192.168.1.4/30
anddp2-v6
i.e.2001:DB8::0/126
through the BGP session between DUT port-1 and ATE port-1- Do not configure BGP between DUT port-2 and ATE port-2
- Do not advertise
ipv4-network 192.168.10.0/24
oripv6-network 2024:db8:128:128::/64
-
Configure an IPv4 static route
ipv4-route
on DUT destined to theipv4-network
i.e.192.168.10.0/24
with the next hop set to the IPv4 address of ATE port-2ap2-v4
i.e.192.168.1.6/30
- /network-instances/network-instance/protocols/protocol/static-routes/static/config/prefix
- /network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/next-hop
- Set the metric of the
ipv4-route
to 104- /network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/metric
- Set a tag on the
ipv4-route
to 40- /network-instances/network-instance/protocols/protocol/static-routes/static/config/set-tag
-
Configure an IPv6 static route on DUT destined to the
ipv6-network
i.e.2024:db8:128:128::/64
with the next hop set to the IPv6 address of ATE port-2ap2-v6
i.e.2001:DB8::5/126
- /network-instances/network-instance/protocols/protocol/static-routes/static/config/prefix
- /network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/next-hop
- Set the metric of the
ipv6-route
to 106- /network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/metric
- Set a tag on the
ipv6-route
to 60- /network-instances/network-instance/protocols/protocol/static-routes/static/config/set-tag
- Configure default import policy to
REJECT_ROUTE
- /network-instances/network-instance/table-connections/table-connection/config/default-import-policy
- Verify default import policy is set to
REJECT_ROUTE
- /network-instances/network-instance/table-connections/table-connection/state/default-import-policy
- Validate that the ATE does not receives the redistributed static route
ipv4-route
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/prefix
- Configure an IPv4 route-policy definition with the name
route-policy-v4
- /routing-policy/policy-definitions/policy-definition/config/name
- For routing-policy
route-policy-v4
configure a statement with the namestatement-v4
- /routing-policy/policy-definitions/policy-definition/statements/statement/config/name
- For routing-policy
route-policy-v4
statementstatement-v4
set policy-result asACCEPT_ROUTE
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/config/policy-result
- Configure a prefix-set with the name
prefix-set-v4
and modeIPV4
- /routing-policy/defined-sets/prefix-sets/prefix-set/config/name
- /routing-policy/defined-sets/prefix-sets/prefix-set/config/mode
- For prefix-set
prefix-set-v4
set the ip-prefix toipv4-network
i.e.192.168.10.0/24
and masklength toexact
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/ip-prefix
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/masklength-range
- For prefix-set
prefix-set-v4
set another ip-prefix toipv4-drop-network
i.e.192.168.20.0/24
and masklength toexact
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/ip-prefix
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/masklength-range
- For routing-policy
route-policy-v4
statementstatement-v4
set match options toANY
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/config/match-set-options
- For routing-policy
route-policy-v4
statementstatement-v4
set prefix set toprefix-set-v4
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/config/prefix-set
- Apply routing policy
route-policy-v4
for redistribution to BGP- /network-instances/network-instance/table-connections/table-connection/config/import-policy
- Verify IPv4 route-policy definition is configured with the name
route-policy-v4
- /routing-policy/policy-definitions/policy-definition/state/name
- Verify for routing-policy
route-policy-v4
a statement with the namestatement-v4
is configured- /routing-policy/policy-definitions/policy-definition/statements/statement/state/name
- Verify for routing-policy
route-policy-v4
statementstatement-v4
policy-result is set toACCEPT_ROUTE
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/state/policy-result
- Verify prefix-set with the name
prefix-set-v4
and modeIPV4
is configured- /routing-policy/defined-sets/prefix-sets/prefix-set/state/name
- /routing-policy/defined-sets/prefix-sets/prefix-set/state/mode
- Verify for prefix-set
prefix-set-v4
the ip-prefix is set to192.168.10.0/24
and masklength is set toexact
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/state/ip-prefix
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/state/masklength-range
- Verify for routing-policy
route-policy-v4
statementstatement-v4
match options is set toANY
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/state/match-set-options
- Verify for routing-policy
route-policy-v4
statementstatement-v4
prefix-set is set toprefix-set-v4
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/state/prefix-set
- Verify routing policy
route-policy-v4
is applied as import policy for redistribution to BGP- /network-instances/network-instance/table-connections/table-connection/state/import-policy
- Validate that the ATE receives the redistributed static route
ipv4-route
with MED of104
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/med
- Initiate traffic from ATE port-1 to the DUT and destined to
ipv4-network
i.e.192.168.10.0/24
- Validate that the traffic is received on ATE port-2
- Disable metric propogation by setting it to
true
- /network-instances/network-instance/table-connections/table-connection/config/disable-metric-propagation
- Verify disable metric propogation is set to
true
- /network-instances/network-instance/table-connections/table-connection/state/disable-metric-propagation
- Validate that the ATE receives the redistributed static route
ipv4-route
with MED either having no value (missing) or0
but not104
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/med
- Enable metric propogation by setting disable-metric-propagation to
false
- /network-instances/network-instance/table-connections/table-connection/config/disable-metric-propagation
- Verify disable metric propogation is now
false
- /network-instances/network-instance/table-connections/table-connection/state/disable-metric-propagation
- Validate that the ATE receives the redistributed static route
ipv4-route
with MED of104
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/med
- For routing-policy
route-policy-v4
statementstatement-v4
set AS-PATH prepend to the ASN64599
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/config/asn
- For routing-policy
route-policy-v4
statementstatement-v4
set the prepended ASN to repeat3
times- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/config/repeat-n
- Verify for routing-policy
route-policy-v4
statementstatement-v4
AS-PATH prepend is set to the ASN64599
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/state/asn
- Verify for routing-policy
route-policy-v4
statementstatement-v4
the prepended ASN64599
repeats3
times- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/state/repeat-n
- Validate that the ATE receives the redistributed static route
ipv4-route
with AS-PATH of64599 64599 64599 64512
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/as-path/as-segment/state/member
- For routing-policy
route-policy-v4
statementstatement-v4
set MED to1000
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-med
- Verify for routing-policy
route-policy-v4
statementstatement-v4
MED is set to1000
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/state/set-med
- validate that the ATE receives the redistributed static route
ipv4-route
with MED of1000
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/med
- For routing-policy
route-policy-v4
statementstatement-v4
set local-preference to100
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-local-pref
- Verify for routing-policy
route-policy-v4
statementstatement-v4
local-preference is set to100
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/state/set-local-pref
- Validate that the ATE receives the redistributed static route
ipv4-route
with MED of1000
on the iBGP session between DUT-ATE port 3- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/local-pref
- Configure a community set with name
community-set-v4
- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/config/community-set-name
- For community set
community-set-v4
configure a community member value to64512:100
- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/config/community-member
- For routing-policy
route-policy-v4
statementstatement-v4
reference the community setcommunity-set-v4
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/reference/config/community-set-ref
- Verify a community set with name
community-set-v4
exists- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-set-name
- Verify for community set
community-set-v4
a community member value of64512:100
is configured- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-member
- Validate that the ATE receives the redistributed static route
ipv4-route
with a community value of64512:100
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/communities/community/state/index
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/state/community-index
- Configure a tag-set with name
tag-set-v4
- /routing-policy/defined-sets/tag-sets/tag-set/config/name
- Configure tag-set
tag-set-v4
with a tag value of100
- /routing-policy/defined-sets/tag-sets/tag-set/config/tag-value
- For routing-policy
route-policy-v4
statementstatement-v4
configure match-set-tag condition totag-set-v4
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/config/tag-set
- For routing-policy
route-policy-v4
statementstatement-v4
configure match options toANY
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/config/match-set-options
- Verify a tag-set with name
tag-set-v4
is configured- /routing-policy/defined-sets/tag-sets/tag-set/state/name
- Verify tag-set
tag-set-v4
with a tag value of100
is configured- /routing-policy/defined-sets/tag-sets/tag-set/state/tag-value
- Verify for routing-policy
route-policy-v4
statementstatement-v4
tag-set is set totag-set-v4
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/state/tag-set
- Verify for routing-policy
route-policy-v4
statementstatement-v4
match-set-options is set toANY
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/state/match-set-options
- Verify that the ATE does not receives the redistributed static route
ipv4-route
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- Configure tag-set
tag-set-v4
with a tag value of40
- /routing-policy/defined-sets/tag-sets/tag-set/config/tag-value
- Verify tag-set
tag-set-v4
with a tag value of40
is configured- /routing-policy/defined-sets/tag-sets/tag-set/state/tag-value
- Verify that the ATE receives the redistributed static route
ipv4-route
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- Initiate traffic from ATE port-1 to the DUT and destined to
ipv4-network
i.e.192.168.10.0/24
- Validate that the traffic is received on ATE port-2
- Configure an IPv4 static route
ipv4-drop-route
on DUT destined toipv4-drop-network
i.e.192.168.20.0/24
with the next hop set toDROP
- /network-instances/network-instance/protocols/protocol/static-routes/static/config/prefix
- /network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/next-hop
- Set a tag on the
ipv4-drop-route
to40
* /network-instances/network-instance/protocols/protocol/static-routes/static/config/set-tag
- For routing-policy
route-policy-v4
statementstatement-v4
set next-hop to192.168.1.9
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-next-hop
- Verify for routing-policy
route-policy-v4
statementstatement-v4
next-hop is set to192.168.1.9
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/state/set-next-hop
- Validate that the ATE receives the redistributed static route
ipv4-drop-route
on the iBGP session between DUT-ATE port 3- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/prefix
- Initiate traffic from ATE port-3 to the DUT and destined to
ipv4-drop-network
i.e.192.168.20.0/24
- Validate that the traffic is received on ATE port-2
- Configure default import policy to
REJECT_ROUTE
- /network-instances/network-instance/table-connections/table-connection/config/default-import-policy
- Verify default import policy is set to
REJECT_ROUTE
- /network-instances/network-instance/table-connections/table-connection/state/default-import-policy
- Validate that the ATE does not receives the redistributed static route
ipv4-route
andipv6-route
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- Configure an IPv6 route-policy definition with the name
route-policy-v6
- /routing-policy/policy-definitions/policy-definition/config/name
- For routing-policy
route-policy-v6
configure a statement with the namestatement-v6
- /routing-policy/policy-definitions/policy-definition/statements/statement/config/name
- For routing-policy
route-policy-v6
statementstatement-v6
set policy-result asACCEPT_ROUTE
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/config/policy-result
- Configure a prefix-set with the name
prefix-set-v6
and modeIPV6
for the routing policyroute-policy-v6
- /routing-policy/defined-sets/prefix-sets/prefix-set/config/name
- /routing-policy/defined-sets/prefix-sets/prefix-set/config/mode
- For prefix-set
prefix-set-v6
set the ip-prefix toipv6-network
i.e.2024:db8:128:128::/64
and masklength toexact
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/ip-prefix
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/masklength-range
- For prefix-set
prefix-set-v6
set another ip-prefix toipv6-drop-network
i.e.2024:db8:64:64::/64
and masklength toexact
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/ip-prefix
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/masklength-range
- For routing-policy
route-policy-v6
statementstatement-v6
set match options toANY
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/config/match-set-options
- For routing-policy
route-policy-v6
statementstatement-v6
set prefix set toprefix-set-v6
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/config/prefix-set
- Apply routing policy
route-policy-v6
for redistribution to BGP- /network-instances/network-instance/table-connections/table-connection/config/import-policy
- Verify for routing-policy
route-policy-v6
a statement with the namestatement-v6
is configured- /routing-policy/policy-definitions/policy-definition/statements/statement/state/name
- Verify for routing-policy
route-policy-v6
statementstatement-v6
policy-result is set toACCEPT_ROUTE
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/state/policy-result
- Verify for routing-policy
route-policy-v6
statementstatement-v6
AS-PATH prepend is set to the ASN64512
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/state/asn
- Verify prefix-set with the name
prefix-set-v6
and modeIPV6
is configured- /routing-policy/defined-sets/prefix-sets/prefix-set/state/name
- /routing-policy/defined-sets/prefix-sets/prefix-set/state/mode
- Verify for prefix-set
prefix-set-v6
the ip-prefix is set to2024:db8:128:128::/64
and masklength is set toexact
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/state/ip-prefix
- /routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/state/masklength-range
- Verify for routing-policy
route-policy-v6
statementstatement-v6
match options is set toANY
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/state/match-set-options
- Verify for routing-policy
route-policy-v6
statementstatement-v6
prefix-set is set toprefix-set-v6
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/state/prefix-set
- Verify routing policy
route-policy-v6
is applied as import policy for redistribution to BGP- /network-instances/network-instance/table-connections/table-connection/state/import-policy
- Validate that the ATE receives the redistributed static route
ipv6-route
with MED of1000
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/med
- Initiate traffic from ATE port-1 to the DUT and destined to
ipv6-network
i.e.2024:db8:128:128::/64
- Validate that the traffic is received on ATE port-2
- Disable metric propogation by setting it to
true
- /network-instances/network-instance/table-connections/table-connection/config/disable-metric-propagation
- Verify disable metric propogation is set to
true
- /network-instances/network-instance/table-connections/table-connection/state/disable-metric-propagation
- Validate that the ATE receives the redistributed static route
ipv6-route
with MED either having no value (missing) or0
but not106
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/med
- Enable metric propogation by setting it to
false
- /network-instances/network-instance/table-connections/table-connection/config/disable-metric-propagation
- Verify disable metric propogation is now
false
- /network-instances/network-instance/table-connections/table-connection/state/disable-metric-propagation
- Validate that the ATE receives the redistributed static route
ipv6-route
with MED106
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/med
- For routing-policy
route-policy-v6
statementstatement-v6
set AS-PATH prepend to the ASN64512
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/config/asn
- Verify for routing-policy
route-policy-v6
statementstatement-v6
AS-PATH prepend is set to the ASN64512
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/state/asn
- Validate that the ATE receives the redistributed static route
ipv6-route
with AS-PATH of64512 64512
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/as-path/as-segment/state/member
- For routing-policy
route-policy-v6
statementstatement-v6
set MED to1000
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-med
- Verify for routing-policy
route-policy-v6
statementstatement-v6
MED is set to1000
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/state/set-med
- Validate that the ATE receives the redistributed static route
ipv6-route
with MED of1000
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/med
- For routing-policy
route-policy-v4
statementstatement-v4
set local-preference to100
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-local-pref
- Verify for routing-policy
route-policy-v4
statementstatement-v4
local-preference is set to100
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/state/set-local-pref
- Validate that the ATE receives the redistributed static route
ipv4-route
with MED of1000
on the iBGP session between DUT-ATE port 3- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/local-pref
- Configure a community set with name
community-set-v6
- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/config/community-set-name
- For community set
community-set-v6
configure a community member value to64512:100
- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/config/community-member
- For routing-policy
route-policy-v6
statementstatement-v6
reference the community setcommunity-set-v6
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/reference/config/community-set-ref
- Verity a community set with name
community-set-v6
exists- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-set-name
- Verify for community set
community-set-v6
a community member value of64512:100
is configured- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-member
- Validate that the ATE receives the redistributed static route
ipv6-route
with a community value of64512:100
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- /network-instances/network-instance/protocols/protocol/bgp/rib/communities/community/state/index
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/state/community-index
- Configure a tag-set with name
tag-set-v6
- /routing-policy/defined-sets/tag-sets/tag-set/config/name
- Configure tag-set
tag-set-v6
with a tag value of100
- /routing-policy/defined-sets/tag-sets/tag-set/config/tag-value
- For routing-policy
route-policy-v6
statementstatement-v6
configure tag-set totag-set-v6
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/config/tag-set
- For routing-policy
route-policy-v6
statementstatement-v6
configure match options toANY
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/config/match-set-options
- Verify a tag-set with name
tag-set-v6
is configured- /routing-policy/defined-sets/tag-sets/tag-set/state/name
- Verify tag-set
tag-set-v6
with a tag value of100
is configured- /routing-policy/defined-sets/tag-sets/tag-set/state/tag-value
- Verify for routing-policy
route-policy-v6
statementstatement-v6
match-set-tag is set totag-set-v6
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/state/tag-set
- Verify for routing-policy
route-policy-v6
statementstatement-v6
match-set-options is set toANY
- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/state/match-set-options
- Verify that the ATE does not receives the redistributed static route
ipv6-route
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- Configure tag-set
tag-set-v6
with a tag value of60
- /routing-policy/defined-sets/tag-sets/tag-set/config/tag-value
- here we are setting correct tag value of 60, as defined in initial setup of this test, to validate that the route is now redistributed
- Verify tag-set
tag-set-v6
with a tag value of60
is configured- /routing-policy/defined-sets/tag-sets/tag-set/state/tag-value
- Verify that the ATE receives the redistributed static route
ipv6-route
- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- Initiate traffic from ATE port-1 to the DUT and destined to
ipv6-network
i.e.2024:db8:128:128::/64
- Validate that the traffic is received on ATE port-2
- Configure an IPv6 static route
ipv6-drop-route
on DUT destined toipv6-drop-network
i.e.2024:db8:64:64::/64
with the next hop set toDROP
- /network-instances/network-instance/protocols/protocol/static-routes/static/config/prefix
- /network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/next-hop
- Set a tag on the
ipv6-drop-route
to 60 * /network-instances/network-instance/protocols/protocol/static-routes/static/config/set-tag
- For routing-policy
route-policy-v6
statementstatement-v6
set next-hop to2001:DB8::9
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-next-hop
- Verify for routing-policy
route-policy-v4
statementstatement-v4
next-hop is set to2001:DB8::9
- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/state/set-next-hop
- Validate that the ATE receives the redistributed static route
ipv4-drop-route
on the iBGP session between DUT-ATE port 3- /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
- Initiate traffic from ATE port-3 to the DUT and destined to
ipv4-drop-network
i.e.2024:db8:64:64::/64
- Validate that the traffic is received on ATE port-2
-
/network-instances/network-instance/protocols/protocol/bgp/global/afi-safis/afi-safi/config/
-
/network-instances/network-instance/protocols/protocol/bgp/global/afi-safis/afi-safi/config/send-community-type
-
/network-instances/network-instance/protocols/protocol/bgp/global/config
-
/network-instances/network-instance/protocols/protocol/static-routes/static/config/prefix
-
/network-instances/network-instance/protocols/protocol/static-routes/static/config/set-tag
-
/network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/metric
-
/network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/next-hop
-
/network-instances/network-instance/table-connections/table-connection/config/address-family
-
/network-instances/network-instance/table-connections/table-connection/config/default-import-policy
-
/network-instances/network-instance/table-connections/table-connection/config/disable-metric-propagation
-
/network-instances/network-instance/table-connections/table-connection/config/dst-protocol
-
/network-instances/network-instance/table-connections/table-connection/config/import-policy
-
/network-instances/network-instance/table-connections/table-connection/config/src-protocol
-
/routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/config/community-member
-
/routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/config/community-set-name
-
/routing-policy/defined-sets/prefix-sets/prefix-set/config/mode
-
/routing-policy/defined-sets/prefix-sets/prefix-set/config/name
-
/routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/ip-prefix
-
/routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/masklength-range
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/config/repeat-n
-
/routing-policy/defined-sets/tag-sets/tag-set/config/name
-
/routing-policy/defined-sets/tag-sets/tag-set/config/tag-value
-
/routing-policy/policy-definitions/policy-definition/config/name
-
/routing-policy/policy-definitions/policy-definition/statements/statement/config/name
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/config/policy-result
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-local-pref
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-med
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-next-hop
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/config/asn
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/reference/config/community-set-ref
-
/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/config/match-set-options
-
/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/config/prefix-set
-
/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/config/match-set-options
-
/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/config/tag-set
-
/network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/prefix
-
/network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/prefix
-
/network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv4-unicast/loc-rib/routes/route/state/community-index
-
/network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/ipv6-unicast/loc-rib/routes/route/state/community-index
-
/network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/as-path/as-segment/state/member
-
/network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/local-pref
-
/network-instances/network-instance/protocols/protocol/bgp/rib/attr-sets/attr-set/state/med
-
/routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-member
-
/routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-set-name
-
/network-instances/network-instance/protocols/protocol/bgp/rib/communities/community/state/index
-
/network-instances/network-instance/table-connections/table-connection/state/address-family
-
/network-instances/network-instance/table-connections/table-connection/state/default-import-policy
-
/network-instances/network-instance/table-connections/table-connection/state/disable-metric-propagation
-
/network-instances/network-instance/table-connections/table-connection/state/dst-protocol
-
/network-instances/network-instance/table-connections/table-connection/state/import-policy
-
/network-instances/network-instance/table-connections/table-connection/state/src-protocol
-
/routing-policy/defined-sets/prefix-sets/prefix-set/state/mode
-
/routing-policy/defined-sets/prefix-sets/prefix-set/state/name
-
/routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/state/ip-prefix
-
/routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/state/masklength-range
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/state/repeat-n
-
/routing-policy/defined-sets/tag-sets/tag-set/state/name
-
/routing-policy/defined-sets/tag-sets/tag-set/state/tag-value
-
/routing-policy/policy-definitions/policy-definition/state/name
-
/routing-policy/policy-definitions/policy-definition/statements/statement/state/name
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/state/policy-result
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/state/asn
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/state/set-local-pref
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/state/set-med
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/state/set-next-hop
-
/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/state/match-set-options
-
/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/state/prefix-set
-
/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/state/match-set-options
-
/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-tag-set/state/tag-set
rpcs:
gnmi:
gNMI.Get:
gNMI.Set:
- FFF