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

CWM 1.2 New Features: Adapter Related Updates

Ming Cao
Cisco Employee
Cisco Employee
  • In CWM 1.2, we have introduced a new pre-built adapter: generic-db, which enables users to interact with PostgreSQL and MySQL databases.

    • With generic-db, you can persistently store workflow outputs in an external database or fetch data from the database as workflow input.
    • The adapter includes two defined activities: Query and Exec. The following screenshots demonstrate how to utilize this adapter with the provided activities.

Screenshot 2024-10-14 at 09.49.07.png

Screenshot 2024-10-14 at 09.49.32.png

  • Adapter XDK for NSO supports generating adapter activities representing NSO actions.

If an NSO YANG file includes any action definition, Adapter XDK for NSO can now automatically generate an activity for that action.

 

module cwm-example {
  ...
  container custom-actions {
    action count-devices {
      tailf:actionpoint count-devices-action;
      input {
        leaf in-subnet {
          type inet:ipv4-prefix;
        }
      }
      output {
        leaf result {
          type uint16;
        }
      }
    }
  }
}

 

 By using the commands shown in the following screenshot, the Proto file and the Go code for adapter will be generated.

Screenshot 2024-10-14 at 10.24.37.png

Screenshot 2024-10-14 at 10.29.51.png

0 Replies 0