narcs / steelconnect-dialogflow

Manage SteelConnect networks through natural language.
1 stars 1 forks source link

Factor out common actions into utility class/functions #32

Closed mirrexagon closed 6 years ago

mirrexagon commented 6 years ago

An example is in actions/delete_wan.py, getting a WAN ID from a short name (and checking that the WAN exists). We'd need some way for the utility functions to signal failure (eg. in case there's no WAN by that name) and what the error was, so the action can propogate the error text upwards.