cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
662
Views
0
Helpful
1
Replies

Conditional default route advertisement in ISIS (IOS XR)

kszarkowicz
Level 1
Level 1

Hi,

I am doing conditional default route advertisement in ISIS on IOS XR as follows:

 

route-policy PL-DEFAULT-ROUTE-CONDITION
  if rib-has-route in (172.16.10.1/32, 172.16.10.2/32) then
    set level level-1
  endif
end-policy
!
router isis core
 address-family ipv4 unicast
  default-information originate route-policy PL-DEFAULT-ROUTE-CONDITION

 

It is working like a charm. 

Now, I would like to change my condition, and instead of looking for specific /32 routes, I would like to look for routes with some community attached, so I change my RP to following:

 

route-policy PL-DEFAULT-ROUTE-CONDITION
  if community matches-any (65000:1) then
    set level level-1
  endif
end-policy

 

 

but with that I get commit error:

 

RP/0/0/CPU0:02-ABR2(config)#show configuration failed
Tue Jul  8 18:51:27.895 UTC
!! SEMANTIC ERRORS: This configuration was rejected by 
!! the system due to semantic errors. The individual 
!! errors with each failed configuration command can be 
!! found below.


!
route-policy PL-DEFAULT-ROUTE-CONDITION
  if community matches-any (65000:1) then
    set level level-1
  endif
end-policy
!
!!% Policy [PL-DEFAULT-ROUTE-CONDITION] uses the 'community' attribute. There is no 'community' attribute at the isis default-originate attach point.
end

 

Is there a way to achieve that?

 

1 Reply 1

kszarkowicz
Level 1
Level 1

Any ideas?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: