bgp_isis_redistribution_test - bstoll/featureprofiles GitHub Wiki
- Source-protocol: BGP, destination-protocol: ISIS L2
- Using Community (Source-protocol: BGP)
- Using defined prefix set
- Connect DUT port-1, 2 to ATE port-1, 2
- Configure IPv4/IPv6 addresses on the ports
- Create an IPv4 networks i.e.
ipv4-network = 192.168.10.0/24attached to ATE port-2 - Create an IPv6 networks i.e.
ipv6-network = 2024:db8:128:128::/64attached to ATE port-2 - Configure IPv4 and IPv6 eBGP between DUT Port-2 and ATE Port-2
- /network-instances/network-instance/protocols/protocol/bgp/global/config
- /network-instances/network-instance/protocols/protocol/bgp/global/afi-safis/afi-safi/config/
- Advertise
ipv4-network = 192.168.10.0/24andipv6-network = 2024:db8:128:128::/64from ATE to DUT with community64512:100
- Configure IPv4 and IPv6 IS-IS L2 adjacency between ATE port-1 and DUT port-1
- /network-instances/network-instance/protocols/protocol/isis/global/afi-safi
- Set level-capability to
LEVEL_2- /network-instances/network-instance/protocols/protocol/isis/global/config/level-capability
- Set metric-style to
WIDE_METRIC- /network-instances/network-instance/protocols/protocol/isis/levels/level/config/metric-style
- 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
- For routing-policy
route-policy-v4statementstatement-v4set IS-IS level to2- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/isis-actions/config/set-level
Configure a prefix-set with a prefix that does not match BGP route for ipv4-network = 192.168.10.0/24
- 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 to192.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
- Set address-family to
IPV4- /network-instances/network-instance/table-connections/table-connection/config/address-family
- Configure source protocol to
BGP- /network-instances/network-instance/table-connections/table-connection/config/src-protocol
- Configure destination protocol to
ISIS- /network-instances/network-instance/table-connections/table-connection/config/dst-protocol
- Disable metric propogation by setting it to
false- /network-instances/network-instance/table-connections/table-connection/config/disable-metric-propagation
- Configure default import policy to
REJECT_ROUTE- /network-instances/network-instance/table-connections/table-connection/config/default-import-policy
- Apply routing policy
route-policy-v4for redistribution to IS-IS- /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 for routing-policy
route-policy-v4statementstatement-v4IS-IS level is set to2- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/isis-actions/state/set-level
- 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.20.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 IS-IS- /network-instances/network-instance/table-connections/table-connection/state/import-policy
- 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
BGP- /network-instances/network-instance/table-connections/table-connection/state/src-protocol
- Verify destination protocol is set to
ISIS- /network-instances/network-instance/table-connections/table-connection/state/dst-protocol
- Verify disable metric propogation is set to
false- /network-instances/network-instance/table-connections/table-connection/state/disable-metric-propagation
- Verify default import policy is set to
REJECT_ROUTE- /network-instances/network-instance/table-connections/table-connection/state/default-import-policy
- Verify routing policy
route-policy-v4is applied for redistribution to IS-IS- /network-instances/network-instance/table-connections/table-connection/config/import-policy
- Validate that the IS-IS on ATE does not receives the redistributed BGP route for network
ipv4-networki.e.192.168.10.0/24- /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv4-reachability/prefixes/prefix/state/prefix
- For prefix-set
prefix-set-v4replace the ip-prefix to192.168.10.0/24and masklength is set 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
- 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
- Validate that the IS-IS on ATE receives the redistributed BGP route for network
ipv4-networki.e.192.168.10.0/24- /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv4-reachability/prefixes/prefix/state/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 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 to64599:200- /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/conditions/bgp-conditions/match-community-set
- Verity 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 of64599:200is configured- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-member
- Validate that the IS-IS on ATE does not receives the redistributed BGP route for network
ipv4-networki.e.192.168.10.0/24- /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv4-reachability/prefixes/prefix/state/prefix
- For community set
community-set-v4replece the community member value to64512:100- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/config/community-member
- 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 IS-IS on ATE receives the redistributed BGP route for network
ipv4-networki.e.192.168.10.0/24- /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv4-reachability/prefixes/prefix/state/prefix
- /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv4-reachability/prefixes/prefix/state/metric
- 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 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
- For routing-policy
route-policy-v6statementstatement-v6set IS-IS level to2- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/isis-actions/config/set-level
Configure a prefix-set with a prefix that does not match BGP route for ipv6-network = 2024:db8:128:128::/64
- Configure a prefix-set with the name
prefix-set-v6and modeIPv6- /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 to2024: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
- Set address-family to
IPV6- /network-instances/network-instance/table-connections/table-connection/config/address-family
- Configure source protocol to
BGP- /network-instances/network-instance/table-connections/table-connection/config/src-protocol
- Configure destination protocol to
ISIS- /network-instances/network-instance/table-connections/table-connection/config/dst-protocol
- Disable metric propogation by setting it to
false- /network-instances/network-instance/table-connections/table-connection/config/disable-metric-propagation
- Configure default import policy to
REJECT_ROUTE- /network-instances/network-instance/table-connections/table-connection/config/default-import-policy
- Apply routing policy
route-policy-v6for redistribution to IS-IS- /network-instances/network-instance/table-connections/table-connection/config/import-policy
- Verify IPv6 route-policy definition is configured with the name
route-policy-v6- /routing-policy/policy-definitions/policy-definition/state/name
- 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-v6IS-IS level is set to2- /routing-policy/policy-definitions/policy-definition/statements/statement/actions/isis-actions/state/set-level
- 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:64:64::/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 IS-IS- /network-instances/network-instance/table-connections/table-connection/state/import-policy
- 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
BGP- /network-instances/network-instance/table-connections/table-connection/state/src-protocol
- Verify destination protocol is set to
ISIS- /network-instances/network-instance/table-connections/table-connection/state/dst-protocol
- Verify disable metric propogation is set to
false- /network-instances/network-instance/table-connections/table-connection/state/disable-metric-propagation
- Verify default import policy is set to
REJECT_ROUTE- /network-instances/network-instance/table-connections/table-connection/state/default-import-policy
- Verify routing policy
route-policy-v6is applied for redistribution to IS-IS- /network-instances/network-instance/table-connections/table-connection/config/import-policy
- Validate that the IS-IS on ATE does not receives the redistributed BGP route for network
ipv6-networki.e.2024:db8:128:128::/64- /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv6-reachability/prefixes/prefix/state/prefix
- For prefix-set
prefix-set-v6replace the ip-prefix to2024:db8:128:128::/64and masklength is set 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
- 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
- Validate that the IS-IS on ATE receives the redistributed BGP route for network
ipv6-networki.e.2024:db8:128:128::/64- /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv6-reachability/prefixes/prefix/state/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 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 to64599:200- /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/conditions/bgp-conditions/match-community-set
- 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 of64599:200is configured- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-member
- Validate that the IS-IS on ATE does not receives the redistributed BGP route for network
ipv6-networki.e.2024:db8:128:128::/64- /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv6-reachability/prefixes/prefix/state/prefix
- For community set
community-set-v6replece the community member value to64512:100- /routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/config/community-member
- 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 IS-IS on ATE receives the redistributed BGP route for network
ipv6-networki.e.2024:db8:128:128::/64- /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv6-reachability/prefixes/prefix/state/prefix
- /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv6-reachability/prefixes/prefix/state/metric
- 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
-
/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/isis/global/afi-safi
-
/network-instances/network-instance/protocols/protocol/isis/global/config/level-capability
-
/network-instances/network-instance/protocols/protocol/isis/levels/level/config/metric-style
-
/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/isis-actions/config/set-level
-
/routing-policy/defined-sets/prefix-sets/prefix-set/config/name
-
/routing-policy/defined-sets/prefix-sets/prefix-set/config/mode
-
/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/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/defined-sets/bgp-defined-sets/community-sets/community-set/config/community-set-name
-
/routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/config/community-member
-
/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/set-community/reference/config/community-set-ref
-
/network-instances/network-instance/table-connections/table-connection/config/address-family
-
/network-instances/network-instance/table-connections/table-connection/config/src-protocol
-
/network-instances/network-instance/table-connections/table-connection/config/dst-protocol
-
/network-instances/network-instance/table-connections/table-connection/config/disable-metric-propagation
-
/network-instances/network-instance/table-connections/table-connection/config/import-policy
-
/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/isis-actions/state/set-level
-
/routing-policy/defined-sets/prefix-sets/prefix-set/state/name
-
/routing-policy/defined-sets/prefix-sets/prefix-set/state/mode
-
/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/conditions/match-prefix-set/state/match-set-options
-
/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/state/prefix-set
-
/network-instances/network-instance/table-connections/table-connection/state/import-policy
-
/network-instances/network-instance/table-connections/table-connection/state/address-family
-
/network-instances/network-instance/table-connections/table-connection/state/src-protocol
-
/network-instances/network-instance/table-connections/table-connection/state/dst-protocol
-
/network-instances/network-instance/table-connections/table-connection/state/disable-metric-propagation
-
/routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-set-name
-
/routing-policy/defined-sets/bgp-defined-sets/community-sets/community-set/state/community-member
-
/network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv4-reachability/prefixes/prefix/state/prefix
-
/network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/extended-ipv6-reachability/prefixes/prefix/state/prefix
- gNMI
- Get
- Set
- FFF