static_route_bgp_redistribution_test - bstoll/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/24andipv4-drop-network = 192.168.20.0/24attached to ATE port-2 -
Create two IPv6 networks i.e.
ipv6-network = 2024:db8:128:128::/64andipv6-drop-network = 2024:db8:64:64::/64attached 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-v4i.e.192.168.1.4/30anddp2-v6i.e.2001:DB8::0/126through 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/24oripv6-network 2024:db8:128:128::/64
-
Configure an IPv4 static route
ipv4-routeon DUT destined to theipv4-networki.e.192.168.10.0/24with the next hop set to the IPv4 address of ATE port-2ap2-v4i.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-routeto 104- /network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/metric
- Set a tag on the
ipv4-routeto 40- /network-instances/network-instance/protocols/protocol/static-routes/static/config/set-tag
-
Configure an IPv6 static route on DUT destined to the
ipv6-networki.e.2024:db8:128:128::/64with the next hop set to the IPv6 address of ATE port-2ap2-v6i.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-routeto 106- /network-instances/network-instance/protocols/protocol/static-routes/static/next-hops/next-hop/config/metric
- Set a tag on the
ipv6-routeto 60- /network-instances/network-instance/protocols/protocol/static-routes/static/config/set-tag
- Redistribute
ipv4-routeto BGP - Set address-family to
IPV4- /network-instances/network-instance/table-connections/table-connection/config/address-family
- Configure source protocol to
STATIC- /network-instances/network-instance/table-connections/table-connection/config/src-protocol
- Configure destination protocol to
BGP- /network-instances/network-instance/table-connections/table-connection/config/dst-protocol
- Configure default import policy to
ACCEPT_ROUTE- /network-instances/network-instance/table-connections/table-connection/config/default-import-policy
- Disable metric propogation by setting it to
true- /network-instances/network-instance/table-connections/table-connection/config/disable-metric-propagation
- Verify the address-family is set to
IPV4- /network-instances/network-instance/table-connections/table-connection/state/address-family
- Verify source protocol is set to
STATIC- /network-instances/network-instance/table-connections/table-connection/state/src-protocol
- Verify destination protocol is set to
BGP- /network-instances/network-instance/table-connections/table-connection/state/dst-protocol
- Verify default import policy is set to
ACCEPT_ROUTE- /network-instances/network-instance/table-connections/table-connection/state/default-import-policy
- 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-routewith MED either having no value (missing) or0but 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-routewith 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
- Set address-family to
IPV6- /network-instances/network-instance/table-connections/table-connection/config/address-family
- Configure source protocol to
STATIC- /network-instances/network-instance/table-connections/table-connection/config/src-protocol
- Configure destination protocol to
BGP- /network-instances/network-instance/table-connections/table-connection/config/dst-protocol
- Configure default import policy to
ACCEPT_ROUTE- /network-instances/network-instance/table-connections/table-connection/config/default-import-policy
- Disable metric propogation by setting it to
true- /network-instances/network-instance/table-connections/table-connection/config/disable-metric-propagation
- Verify the address-family is set to
IPV6- /network-instances/network-instance/table-connections/table-connection/state/address-family
- Verify source protocol is set to
STATIC- /network-instances/network-instance/table-connections/table-connection/state/src-protocol
- Verify destination protocol is set to
BGP- /network-instances/network-instance/table-connections/table-connection/state/dst-protocol
- Verify default import policy is set to
ACCEPT_ROUTE- /network-instances/network-instance/table-connections/table-connection/state/default-import-policy
- 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-routewith MED either having no value (missing) or0but 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-routewith 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
- 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-routeandipv6-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 IPv4 route-policy definition with the name
route-policy-v4- /routing-policy/policy-definitions/policy-definition/config/name
- For routing-policy
route-policy-v4configure a statement with the namestatement-v4- /routing-policy/policy-definitions/policy-definition/statements/statement/config/name
- For routing-policy
route-policy-v4statementstatement-v4set 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-v4and 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-v4set the ip-prefix toipv4-networki.e.192.168.10.0/24and 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-v4set another ip-prefix toipv4-drop-networki.e.192.168.20.0/24and 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-v4statementstatement-v4set match options toANY- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/config/match-set-options
- For routing-policy
route-policy-v4statementstatement-v4set 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-v4for 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-v4a statement with the namestatement-v4is configured- /routing-policy/policy-definitions/policy-definition/statements/statement/state/name
- Verify for routing-policy
route-policy-v4statementstatement-v4policy-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-v4and modeIPV4is 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-v4the ip-prefix is set to192.168.10.0/24and 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-v4statementstatement-v4match 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-v4statementstatement-v4prefix-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-v4is 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-routewith 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-networki.e.192.168.10.0/24 - Validate that the traffic is received on ATE port-2
- For routing-policy
route-policy-v4statementstatement-v4set 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-v4statementstatement-v4set the prepended ASN to repeat3times- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-as-path-prepend/config/repeat-n
- Verify for routing-policy
route-policy-v4statementstatement-v4AS-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-v4statementstatement-v4the prepended ASN64599repeats3times- /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-routewith 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-v4statementstatement-v4set MED to1000- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-med
- Verify for routing-policy
route-policy-v4statementstatement-v4MED 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-routewith 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-v4statementstatement-v4set local-preference to100- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-local-pref
- Verify for routing-policy
route-policy-v4statementstatement-v4local-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-routewith MED of1000on 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-v4configure 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-v4statementstatement-v4reference 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-v4exists- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-set-name
- Verify for community set
community-set-v4a community member value of64512:100is 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-routewith 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-v4with a tag value of100- /routing-policy/defined-sets/tag-sets/tag-set/config/tag-value
- For routing-policy
route-policy-v4statementstatement-v4configure 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-v4statementstatement-v4configure 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-v4is configured- /routing-policy/defined-sets/tag-sets/tag-set/state/name
- Verify tag-set
tag-set-v4with a tag value of100is configured- /routing-policy/defined-sets/tag-sets/tag-set/state/tag-value
- Verify for routing-policy
route-policy-v4statementstatement-v4tag-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-v4statementstatement-v4match-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-v4with a tag value of40- /routing-policy/defined-sets/tag-sets/tag-set/config/tag-value
- Verify tag-set
tag-set-v4with a tag value of40is 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-networki.e.192.168.10.0/24 - Validate that the traffic is received on ATE port-2
- Configure an IPv4 static route
ipv4-drop-routeon DUT destined toipv4-drop-networki.e.192.168.20.0/24with 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-routeto40* /network-instances/network-instance/protocols/protocol/static-routes/static/config/set-tag
- For routing-policy
route-policy-v4statementstatement-v4set 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-v4statementstatement-v4next-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-routeon 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-networki.e.192.168.20.0/24 - Validate that the traffic is received on ATE port-2
- 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-v6configure a statement with the namestatement-v6- /routing-policy/policy-definitions/policy-definition/statements/statement/config/name
- For routing-policy
route-policy-v6statementstatement-v6set 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-v6and modeIPV6for 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-v6set the ip-prefix toipv6-networki.e.2024:db8:128:128::/64and 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-v6set another ip-prefix toipv6-drop-networki.e.2024:db8:64:64::/64and 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-v6statementstatement-v6set match options toANY- /routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/config/match-set-options
- For routing-policy
route-policy-v6statementstatement-v6set 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-v6for redistribution to BGP- /network-instances/network-instance/table-connections/table-connection/config/import-policy
- Verify for routing-policy
route-policy-v6a statement with the namestatement-v6is configured- /routing-policy/policy-definitions/policy-definition/statements/statement/state/name
- Verify for routing-policy
route-policy-v6statementstatement-v6policy-result is set toACCEPT_ROUTE- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/state/policy-result
- Verify for routing-policy
route-policy-v6statementstatement-v6AS-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-v6and modeIPV6is 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-v6the ip-prefix is set to2024:db8:128:128::/64and 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-v6statementstatement-v6match 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-v6statementstatement-v6prefix-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-v6is 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-routewith 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-networki.e.2024:db8:128:128::/64 - Validate that the traffic is received on ATE port-2
- For routing-policy
route-policy-v6statementstatement-v6set 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-v6statementstatement-v6AS-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-routewith 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-v6statementstatement-v6set MED to1000- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-med
- Verify for routing-policy
route-policy-v6statementstatement-v6MED 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-routewith 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-v4statementstatement-v4set local-preference to100- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config/set-local-pref
- Verify for routing-policy
route-policy-v4statementstatement-v4local-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-routewith MED of1000on 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-v6configure 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-v6statementstatement-v6reference 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-v6exists- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-set-name
- Verify for community set
community-set-v6a community member value of64512:100is 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-routewith 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-v6with a tag value of100- /routing-policy/defined-sets/tag-sets/tag-set/config/tag-value
- For routing-policy
route-policy-v6statementstatement-v6configure 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-v6statementstatement-v6configure 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-v6is configured- /routing-policy/defined-sets/tag-sets/tag-set/state/name
- Verify tag-set
tag-set-v6with a tag value of100is configured- /routing-policy/defined-sets/tag-sets/tag-set/state/tag-value
- Verify for routing-policy
route-policy-v6statementstatement-v6match-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-v6statementstatement-v6match-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-v6with 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-v6with a tag value of60is 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-networki.e.2024:db8:128:128::/64 - Validate that the traffic is received on ATE port-2
- Configure an IPv6 static route
ipv6-drop-routeon DUT destined toipv6-drop-networki.e.2024:db8:64:64::/64with 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-routeto 60 * /network-instances/network-instance/protocols/protocol/static-routes/static/config/set-tag
- For routing-policy
route-policy-v6statementstatement-v6set 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-v4statementstatement-v4next-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-routeon 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-networki.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