Configure Route Map Match and Set of Community List

Procedure

  1. Run the following command to create a route map match of a certain match type.
    efa policy route-map-match create [flags]
     
    Flags:
          --name string                      Name of the route map
          --rule string                      Rule in format seq[seq-num],action[permit/deny]. Example: seq[5],action[permit]
          --match-ipv4-prefix string         IPv4 prefix-list name
          --match-community-list string      Community list name
          --match-extcommunity-list string   ExtCommunity list name
    Example:
    efa policy route-map-match create --name foo --rule seq[10],action[permit] --match-extcommunity-list extFoo
    +----------------+---------+--------+
    | Route Map Name | Seq num | Action |
    +----------------+---------+--------+
    | foo            | 10      | permit |
    +----------------+---------+--------+
    Route Map details
    +---------------+---------+--------+-----------------+
    |  IP Address   | Result  | Reason | Rollback reason |
    +---------------+---------+--------+-----------------+
    | 10.139.44.162 | Success |        |                 |
    +---------------+---------+--------+-----------------+
    1. Verify the switch configuration on SLX devices.
      route-map foo permit 10
      match extcommunity extFoo
  2. Run the following command to remove a route map match of a certain match type.
     efa policy route-map-match delete [flags]
     
    Flags:
          --name string                      Name of the route map
          --rule string                      Rule in format seq[seq-num],action[permit/deny]. Example: seq[5],action[permit]
          --match-ipv4-prefix string         IPv4 prefix-list name
          --match-community-list string      Community list name
          --match-extcommunity-list string   ExtCommunity list name
    Example:
    efa policy route-map-match delete --name foo --rule seq[10],action[permit] --match-extcommunity-list extFoo
    +----------------+---------+--------+
    | Route Map Name | Seq num | Action |
    +----------------+---------+--------+
    | foo            | 10      | permit |
    +----------------+---------+--------+
    Route Map details
    +---------------+---------+--------+-----------------+
    |  IP Address   | Result  | Reason | Rollback reason |
    +---------------+---------+--------+-----------------+
    | 10.139.44.162 | Success |        |                 |
    +---------------+---------+--------+-----------------+
    1. Verify the switch configuration on SLX devices.
      route-map foo permit 10
      !
  3. Run the following command to set the standard and extended community list attributes.

    The CLI sets the community list for deletion.

    efa policy route-map-set create [flags]
     
    Flags:
          --name string                       Name of the route map
          --rule string                       Rule in format seq[seq-num],action[permit/deny]. Example: seq[5],action[permit]
          --set-community string              --set-community [<1-4294967295>|<AA:NN, AA & NN is 2 bytes>|internet|local-as|no-export|no-advertise]. Example: 6550:125,local-as,internet
          --set-extcommunity-rt string        --set-extcommunity-rt [ASN:NN|IpAddress:NN, ASN & NN is 2 or 4 bytes | additive]. Example: 2:300,12.12.13.33:24
          --set-extcommunity-soo string       --set-extcommunity-soo [ASN:NN|IpAddress:NN, ASN & NN is 2 or 4 bytes]. Example: 32:124
          --set-communitylist-delete string   --set-communitylist-delete [community-list name]
    Example:
    efa policy route-map-set create --name foo --rule seq[10],action[permit] --set-community 6550:125,internet,local-as
    +----------------+---------+--------+
    | Route Map Name | Seq num | Action |
    +----------------+---------+--------+
    | foo            | 10      | permit |
    +----------------+---------+--------+
    Route Map details
    +---------------+---------+--------+-----------------+
    |  IP Address   | Result  | Reason | Rollback reason |
    +---------------+---------+--------+-----------------+
    | 10.139.44.161 | Success |        |                 |
    +---------------+---------+--------+-----------------+
    | 10.139.44.162 | Success |        |                 |
    +---------------+---------+--------+-----------------+
    Device Results
    --- Time Elapsed: 10.33886575s ---
    1. Verify the switch configuration on SLX devices.
      SLX# show running-config route-map
      route-map foo permit 10
      set community 6550:125 local-as internet
      !
  4. Run the following command to delete the set directive on route map.
    efa policy route-map-set delete [flags]
     
    Flags:
          --name string                       Name of the route map
          --rule string                       Rule in format seq[seq-num],action[permit/deny]. Example: seq[5],action[permit]
          --set-community string              --set-community [<1-4294967295>|<AA:NN, AA & NN is 2 bytes>|internet|local-as|no-export|no-advertise]. Example: 6550:125,local-as,internet
          --set-extcommunity-rt string        --set-extcommunity-rt [ASN:NN|IpAddress:NN, ASN & NN is 2 or 4 bytes | additive]. Example: 2:300,12.12.13.33:24
          --set-extcommunity-soo string       --set-extcommunity-soo [ASN:NN|IpAddress:NN, ASN & NN is 2 or 4 bytes]. Example: 32:124
          --set-communitylist-delete string   --set-communitylist-delete [community-list name]
    Example:
    efa policy route-map-set delete --name foo --rule seq[10],action[permit] --set-community 6550:125,internet,local-as
    +----------------+---------+--------+
    | Route Map Name | Seq num | Action |
    +----------------+---------+--------+
    | foo            | 10      | permit |
    +----------------+---------+--------+
    Route Map details
    +---------------+---------+--------+-----------------+
    |  IP Address   | Result  | Reason | Rollback reason |
    +---------------+---------+--------+-----------------+
    | 10.139.44.161 | Success |        |                 |
    +---------------+---------+--------+-----------------+
    | 10.139.44.162 | Success |        |                 |
    +---------------+---------+--------+-----------------+
    Device Results
    --- Time Elapsed: 11.547377938s ---
    1. Verify the switch configuration on SLX devices.
      SLX# show running-config route-map
      route-map foo permit 10
      !