cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
455
Views
0
Helpful
4
Replies

EEM Routing issue with excluded ip addresses configuration

Ologbo
Beginner
Beginner


Hi,
I want to adapt the Applet in this way, that IP addresses 10.124.132.1, 10.124.132.2 and 10.124.132.3 and 10.124.132.4 are excluded from the Action, for all other addresses in the range 10.124.132.0/22 the Applet Action must be triggered.

My issue is how do I remove these 4 ip addresses from the range 10.124.132.0/22

Current Applet:

As soon an /32 is detected in the range 10.124.132.0/22 the Applet is triggered.

event manager applet BGP-Peer-add-rcc
event tag e1-nRRclient routing network 10.124.132.1/32 type add protocol ISIS le 32
event tag e2-RRclient routing network 10.124.132.0/22 type add protocol ISIS le 32
trigger
correlate event e2-RRclient
action 1.08 syslog priority informational msg "BGP Loopback $_routing_network erreichbar via IS-IS Betriebsort aufgebaut, Peer $_routing
_network wird hinzugefuegt"
action 1.10 cli command "enable"
action 1.11 cli command "conf t"
action 1.12 cli command "router bgp 65049"
action 1.13 cli command "neighbor $_routing_network remote-as 65049 "
action 1.14 cli command "neighbor $_routing_network peer-group RR1"
action 2.1 cli command "router bgp 65049"
action 2.2 cli command "address-family ipv4"
action 2.3 cli command "neighbor $_routing_network activate"
action 3.1 cli command "router bgp 65049"
action 3.2 cli command "address-family vpnv4"
action 3.3 cli command "neighbor $_routing_network activate"
action 4.1 puts "$_routing_network"

regards

ologbo

4 Replies 4

paul driver
VIP Expert VIP Expert
VIP Expert

Hello

Why do you need a EEM script to exclude ip prefixes ?

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hi,
The excluded IP addresses are not suppose to be affected by the actions.Is there a better way to exclude the IP addresses?
Regards
Ologbo



Georg Pauwen
VIP Master VIP Master
VIP Master

Hello,

 

I don't think you can exclude those 4 host routes with the regular EEM scripting options. A TCL script might work...I'll see what I can come up with...

Hi Georg,
I'm new to EEM world and I haven't written a TCL script before. If you have any suggestion on how to do it with the TCL script will be appreciated.

Regards
Ologbo
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:

Recognize Your Peers