11-02-2018 01:08 AM
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
11-02-2018 02:12 AM
Hello
Why do you need a EEM script to exclude ip prefixes ?
11-04-2018 11:04 PM
11-02-2018 02:32 AM
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...
11-04-2018 11:04 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide