Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for event-handler #121

Merged
merged 8 commits into from
May 14, 2020

Conversation

titom73
Copy link
Contributor

@titom73 titom73 commented Apr 30, 2020

Summary

Add support of event-handler in following roles:

  • eos_l3ls_evpn
  • eos_cli_config_gen

In order to make data model easier to maintain, when it is used with eos_l3ls_evpn role, event_handler block should be placed on group_vars targeting set of expecting devices:

  • group_vars/DC1_FABRIC.yml to apply on all eos devices
  • group_vars/DC1_SPINES.yml to apply on all spine devices
  • group_vars/DC1_L3LEAFS.yml to apply on all l3leaf devices

Inputs:

event_handler:
  evpn-blacklist-recovery:
    action_type: bash
    action: FastCli -p 15 -c “clear bgp evpn host-flap”
    delay: 300
    trigger: on-logging
    regex:  EVPN-3-BLACKLISTED_DUPLICATE_MAC
    asynchronous: true

Generated outputs:

  • EOS Configuration:
event-handler evpn-blacklist-recovery
   action bash FastCli -p 15 -c “clear bgp evpn host-flap”
   delay 300
   asynchronous
   !
   trigger on-logging
      regex EVPN-3-BLACKLISTED_DUPLICATE_MAC
!
  • EOS Documentation:

Implement first draft for event-handler at device level

Inputs:
-------

```
event_handler:
  evpn-blacklist-recovery:
    action_type: bash
    action: FastCli -p 15 -c “clear bgp evpn host-flap”
    delay: 300
    trigger: on-logging
    regex:  EVPN-3-BLACKLISTED_DUPLICATE_MAC
    asynchronous: true
```

Todo:
-----

- Update documentation templates
- Report to EVPN data model (eos_l3ls_evpn)
Report Envent Handler configuration information into device
auto-generated documentation
Translate group_vars input for event-handler to device data model.

Because data model is the same for both EVPN group_vars and device
data-model, it is important to define event-handler on a per inventory
group based
@titom73 titom73 added type: documentation Improvements or additions to documentation type: enhancement New feature or request EVPN design guide labels Apr 30, 2020
@titom73 titom73 self-assigned this Apr 30, 2020
@titom73 titom73 linked an issue Apr 30, 2020 that may be closed by this pull request
@carlbuchmann
Copy link
Member

LGTM

@carlbuchmann carlbuchmann merged commit 549abb8 into releases/v1.0.x May 14, 2020
@carlbuchmann carlbuchmann deleted the issues/84-event-handler-implementation branch May 14, 2020 11:18
@carlbuchmann carlbuchmann added this to the v1.0.2 milestone Jul 29, 2020
@carlbuchmann carlbuchmann mentioned this pull request Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EVPN design guide type: documentation Improvements or additions to documentation type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add event-handler to clear EVPN blacklisted MAC-address
2 participants