@rest_initialiser()
def execute(self, opts):
    if ((opts.data_path is None) and (opts.index_path is None) and (opts.analytics_path is None) and (opts.eventing_path is None) and (opts.java_home is None) and (opts.hostname is None) and (opts.ipv6 is None) and (opts.ipv4 is None)):
        _exit_if_errors(['No node initialization parameters specified'])
    if (opts.ipv4 and opts.ipv6):
        _exit_if_errors(['Use either --ipv4 or --ipv6'])
    if opts.ipv4:
        afamily = 'ipv4'
    elif opts.ipv6:
        afamily = 'ipv6'
    else:
        afamily = None
    (_, errors) = self.rest.node_init(hostname=opts.hostname, afamily=afamily, data_path=opts.data_path, index_path=opts.index_path, cbas_path=opts.analytics_path, eventing_path=opts.eventing_path, java_home=opts.java_home)
    _exit_if_errors(errors)
    _success('Node initialized')
@rest_initialiser()
def execute(self, opts):
    if ((opts.data_path is None) and (opts.index_path is None) and (opts.analytics_path is None) and (opts.eventing_path is None) and (opts.java_home is None) and (opts.hostname is None) and (opts.ipv6 is None) and (opts.ipv4 is None)):
        _exit_if_errors(['No node initialization parameters specified'])
    if (opts.ipv4 and opts.ipv6):
        _exit_if_errors(['Use either --ipv4 or --ipv6'])
    if opts.ipv4:
        afamily = 'ipv4'
    elif opts.ipv6:
        afamily = 'ipv6'
    else:
        afamily = None
    (_, errors) = self.rest.node_init(hostname=opts.hostname, afamily=afamily, data_path=opts.data_path, index_path=opts.index_path, cbas_path=opts.analytics_path, eventing_path=opts.eventing_path, java_home=opts.java_home)
    _exit_if_errors(errors)
    _success('Node initialized')