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

Kicker trigger but nothing happend

Gastonper
Level 1
Level 1

Hi I have a problem with a kicker.

When I make a modification in the monitor node, the kicker trigger and the action is invoqued  but nothing happend. Not mater what is in the action, Is like the action is invoqued but the python module not find it.

 

This is my kicker config:

kickers data-kicker config_voip
 monitor     /ncs:services/pon:pon/services/voip:voip/voip:onus/voip:port-fxs
 kick-node   .
 action-name config_fxs_port
!

 

YANG module:

augment "/ncs:services/pon:pon/pon:services" {
    list voip {
        ...
        list onus {
            ...
            list port-fxs {
                ...				
            }
        }

        tailf:action config_fxs_port {
            tailf:actionpoint fxs_port;
            input {
                uses kicker:action-input-params;
            }
            output {
            }
        }			
    }
}

 

Part of Python code:

class fxs_port(Action):
    @Action.action
    def cb_action(self, uinfo, name, kp, input, output, trans):
        self.log.info('action name: ', name)
        self.log.info('KICKER HAS BEEN KICKED')

class Main(ncs.application.Application):
    def setup(self):

        self.log.info('Main RUNNING')
        
        self.register_service('pon-voip', ServiceCallbacks)

        self.register_action('fxs_port', fxs_port)

 

If I do a commit debug kicker:

 

admin@ncs(config-port-fxs-0/1)# commit dry-run | debug kicker
 2020-04-15T15:13:17.728 kicker: config_voip at /ncs:services/pon:pon/pon:services/voip:voip[voip:code='26138349'] changed; invoking config_fxs_port
 2020-04-15T15:13:17.729 kicker: config_voip at /ncs:services/pon:pon/pon:services/voip:voip[voip:code='26138349']/voip:onus[voip:olt='CEYD-01Z'][voip:rack='1'][voip:shelf='1'][voip:slot='3'][voip:port='1'][voip:onuid='35']/voip:port-fxs[voip:lan-card='0'][voip:port='1'] changed; invoking config_fxs_port

 

But nothing else happend and "KICKER HAS BEEN KICKED" never get logged.

0 Replies 0