@options([make_option('-l', '--list', action="store_true",
                          help="List SMPP connectors"),
              make_option('-a', '--add', action="store_true",
                          help="Add SMPP connector"),
              make_option('-u', '--update', type="string", metavar="CID",
                          help="Update SMPP connector configuration using it's CID"),
              make_option('-r', '--remove', type="string", metavar="CID",
                          help="Remove SMPP connector using it's CID"),
              make_option('-s', '--show', type="string", metavar="CID",
                          help="Show SMPP connector using it's CID"),
              make_option('-1', '--start', type="string", metavar="CID",
                          help="Start SMPP connector using it's CID"),
              make_option('-0', '--stop', type="string", metavar="CID",
                          help="Start SMPP connector using it's CID")], '')
    def do_smppccm(self, arg, opts):

        if opts.list:
            self.managers['smppccm'].list(arg, opts)
        elif opts.add:
            self.managers['smppccm'].add(arg, opts)
        elif opts.update:
            self.managers['smppccm'].update(arg, opts)
        elif opts.remove:
            self.managers['smppccm'].remove(arg, opts)
        elif opts.show:
            self.managers['smppccm'].show(arg, opts)
        elif opts.start:
            self.managers['smppccm'].start(arg, opts)
        elif opts.stop:
            self.managers['smppccm'].stop(arg, opts)
        else:
            return self.sendData('Missing required option')
SMPP connector management
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/jcli.py/JCliProtocol.do_smppccm