Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Conditional default route advertisement in ISIS (IOS XR)

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
New Member

Any ideas?

Any ideas?

187
Views
0
Helpful
1
Replies
CreatePlease to create content