Пример #1
0
def main():
    """ Main method
    """
    prsr = utils.common_parser(NODE_TYPE)
    args = prsr.parse_args()
    conf = utils.load_configuration(NODE_TYPE, args)
    vxrd_inst = _Vxrd(conf)
    return vxrd_inst.run()
Пример #2
0
def main():
    """ Main method
    """
    prsr = utils.common_parser(_NODE_NAME, NODE_TYPE)
    # For running non-sudo.  Disables bind to raw socket
    prsr.add_argument('-R', '--no-flood', action='store_true',
                      help='Turn off flooding')
    args = prsr.parse_args()
    conf = utils.load_configuration(args)
    vxsnd_inst = _Vxsnd(conf)
    return vxsnd_inst.run()