Comments and annotations inside trigger expression

XMLWordPrintable

    • Type: New Feature Request
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: Frontend (F)
    • None

      Trigger expressions can become very complex and dificult to read and understand in some specific scenarios.

      I would be able to make annotations INSIDE trigger expressions so anyone looking at it would understand the logic.

      Something like:

      {template:hwBgpPeerState.[{#SNMPINDEX}].last()} <> 6 // If peer state is not 6
      and
      {template:hwBgpPeerState.[{#SNMPINDEX}].diff()} = 1 // ... and changed state
      and
      {template:hwBgpPeerAdminStatus.[{#SNMPINDEX}].last()} = 2 // adminstatus = 2 means 'enabled'

            Assignee:
            Valdis Murzins
            Reporter:
            Fernando Chaves
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: