<reponame>nobuhikosekiya/sbx_multi_ios<filename>dmvpn-as-code/packages/dmvpn/python/dmvpn/actions.py<gh_stars>10-100
from ncs.dp import Action


class DMVPNAction(Action):
    @Action.action
    def cb_action(self, uinfo, name, kp, input, output):
        self.log.info('action name: ', name)
        self.log.info('action input.number: ', input.number)

        # Updating the output data structure will result in a response
        # being returned to the caller.
        output.result = input.number * 2

from ncs.dp import Action


class DMVPNAction(Action):
    @Action.action
    def cb_action(self, uinfo, name, kp, input, output):
        self.log.info('action name: ', name)
        self.log.info('action input.number: ', input.number)

        # Updating the output data structure will result in a response
        # being returned to the caller.
        output.result = input.number * 2
# Updating the output data structure will result in a response # being returned to the caller.