Use this API to add ip6tunnel resources.
514795
public static base_responses add(nitro_service client, ip6tunnel resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			ip6tunnel addresources[] = new ip6tunnel[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new ip6tunnel();
				addresources[i].name = resources[i].name;
				addresources[i].remote = resources[i].remote;
				addresources[i].local = resources[i].local;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
215627
public static onlinkipv6prefix[] get(nitro_service service, String ipv6prefix[]) throws Exception{
		if (ipv6prefix !=null && ipv6prefix.length>0) {
			onlinkipv6prefix response[] = new onlinkipv6prefix[ipv6prefix.length];
			onlinkipv6prefix obj[] = new onlinkipv6prefix[ipv6prefix.length];
			for (int i=0;i<ipv6prefix.length;i++) {
				obj[i] = new onlinkipv6prefix();
				obj[i].set_ipv6prefix(ipv6prefix[i]);
				response[i] = (onlinkipv6prefix) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
552964
public static base_response add(nitro_service client, lbroute6 resource) throws Exception {
		lbroute6 addresource = new lbroute6();
		addresource.network = resource.network;
		addresource.gatewayname = resource.gatewayname;
		return addresource.add_resource(client);
	}
1093361
public static base_responses add(nitro_service client, dnsaaaarec resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnsaaaarec addresources[] = new dnsaaaarec[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dnsaaaarec();
				addresources[i].hostname = resources[i].hostname;
				addresources[i].ipv6address = resources[i].ipv6address;
				addresources[i].ttl = resources[i].ttl;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
386118
public static base_response add(nitro_service client, nsacl6 resource) throws Exception {
		nsacl6 addresource = new nsacl6();
		addresource.acl6name = resource.acl6name;
		addresource.acl6action = resource.acl6action;
		addresource.td = resource.td;
		addresource.srcipv6 = resource.srcipv6;
		addresource.srcipop = resource.srcipop;
		addresource.srcipv6val = resource.srcipv6val;
		addresource.srcport = resource.srcport;
		addresource.srcportop = resource.srcportop;
		addresource.srcportval = resource.srcportval;
		addresource.destipv6 = resource.destipv6;
		addresource.destipop = resource.destipop;
		addresource.destipv6val = resource.destipv6val;
		addresource.destport = resource.destport;
		addresource.destportop = resource.destportop;
		addresource.destportval = resource.destportval;
		addresource.ttl = resource.ttl;
		addresource.srcmac = resource.srcmac;
		addresource.protocol = resource.protocol;
		addresource.protocolnumber = resource.protocolnumber;
		addresource.vlan = resource.vlan;
		addresource.Interface = resource.Interface;
		addresource.established = resource.established;
		addresource.icmptype = resource.icmptype;
		addresource.icmpcode = resource.icmpcode;
		addresource.priority = resource.priority;
		addresource.state = resource.state;
		return addresource.add_resource(client);
	}
548792
public static base_responses add(nitro_service client, vpnnexthopserver resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			vpnnexthopserver addresources[] = new vpnnexthopserver[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new vpnnexthopserver();
				addresources[i].name = resources[i].name;
				addresources[i].nexthopip = resources[i].nexthopip;
				addresources[i].nexthopport = resources[i].nexthopport;
				addresources[i].secure = resources[i].secure;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
742063
def create_api_ipv6(self):
        """"""

        return ApiIPv6(
            self.networkapi_url,
            self.user,
            self.password,
            self.user_ldap)
799784
def route_add_loopback(routes=None, ipv6=False, iflist=None):
    """"""
    if not WINDOWS:
        warning("Not available")
        return
    warning("This will completely mess up the routes. Testing purpose only !")
    # Add only if some adpaters already exist
    if ipv6:
        if not conf.route6.routes:
            return
    else:
        if not conf.route.routes:
            return
    data = {
        'name': scapy.consts.LOOPBACK_NAME,
        'description': "Loopback",
        'win_index': -1,
        'guid': "{0XX00000-X000-0X0X-X00X-00XXXX000XXX}",
        'invalid': True,
        'mac': '00:00:00:00:00:00',
        'ipv4_metric': 0,
        'ipv6_metric': 0,
        'ips': ["127.0.0.1", "::"]
    }
    adapter = NetworkInterface()
    adapter.pcap_name = "\\Device\\NPF_{0XX00000-X000-0X0X-X00X-00XXXX000XXX}"
    adapter.update(data)
    adapter.invalid = False
    adapter.ip = "127.0.0.1"
    if iflist:
        iflist.append(adapter.pcap_name)
        return
    # Remove all LOOPBACK_NAME routes
    for route in list(conf.route.routes):
        iface = route[3]
        if iface.name == scapy.consts.LOOPBACK_NAME:
            conf.route.routes.remove(route)
    # Remove LOOPBACK_NAME interface
    for devname, iface in list(IFACES.items()):
        if iface.name == scapy.consts.LOOPBACK_NAME:
            IFACES.pop(devname)
    # Inject interface
    IFACES["{0XX00000-X000-0X0X-X00X-00XXXX000XXX}"] = adapter
    scapy.consts.LOOPBACK_INTERFACE = adapter
    if isinstance(conf.iface, NetworkInterface):
        if conf.iface.name == scapy.consts.LOOPBACK_NAME:
            conf.iface = adapter
    if isinstance(conf.iface6, NetworkInterface):
        if conf.iface6.name == scapy.consts.LOOPBACK_NAME:
            conf.iface6 = adapter
    conf.netcache.arp_cache["127.0.0.1"] = "ff:ff:ff:ff:ff:ff"
    conf.netcache.in6_neighbor["::1"] = "ff:ff:ff:ff:ff:ff"
    # Build the packed network addresses
    loop_net = struct.unpack("!I", socket.inet_aton("127.0.0.0"))[0]
    loop_mask = struct.unpack("!I", socket.inet_aton("255.0.0.0"))[0]
    # Build the fake routes
    loopback_route = (loop_net, loop_mask, "0.0.0.0", adapter, "127.0.0.1", 1)
    loopback_route6 = ('::1', 128, '::', adapter, ["::1"], 1)
    loopback_route6_custom = ("fe80::", 128, "::", adapter, ["::1"], 1)
    if routes is None:
        # Injection
        conf.route6.routes.append(loopback_route6)
        conf.route6.routes.append(loopback_route6_custom)
        conf.route.routes.append(loopback_route)
        # Flush the caches
        conf.route6.invalidate_cache()
        conf.route.invalidate_cache()
    else:
        if ipv6:
            routes.append(loopback_route6)
            routes.append(loopback_route6_custom)
        else:
            routes.append(loopback_route)
662469
public static base_response add(nitro_service client, vpnnexthopserver resource) throws Exception {
		vpnnexthopserver addresource = new vpnnexthopserver();
		addresource.name = resource.name;
		addresource.nexthopip = resource.nexthopip;
		addresource.nexthopport = resource.nexthopport;
		addresource.secure = resource.secure;
		return addresource.add_resource(client);
	}
3169
def create_api_network_ipv6(self):
        """"""

        return ApiNetworkIPv6(
            self.networkapi_url,
            self.user,
            self.password,
            self.user_ldap)
1265518
public static base_response add(nitro_service client, dnsaaaarec resource) throws Exception {
		dnsaaaarec addresource = new dnsaaaarec();
		addresource.hostname = resource.hostname;
		addresource.ipv6address = resource.ipv6address;
		addresource.ttl = resource.ttl;
		return addresource.add_resource(client);
	}
968392
public static base_responses add(nitro_service client, nsip resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsip addresources[] = new nsip[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nsip();
				addresources[i].ipaddress = resources[i].ipaddress;
				addresources[i].netmask = resources[i].netmask;
				addresources[i].type = resources[i].type;
				addresources[i].arp = resources[i].arp;
				addresources[i].icmp = resources[i].icmp;
				addresources[i].vserver = resources[i].vserver;
				addresources[i].telnet = resources[i].telnet;
				addresources[i].ftp = resources[i].ftp;
				addresources[i].gui = resources[i].gui;
				addresources[i].ssh = resources[i].ssh;
				addresources[i].snmp = resources[i].snmp;
				addresources[i].mgmtaccess = resources[i].mgmtaccess;
				addresources[i].restrictaccess = resources[i].restrictaccess;
				addresources[i].dynamicrouting = resources[i].dynamicrouting;
				addresources[i].ospf = resources[i].ospf;
				addresources[i].bgp = resources[i].bgp;
				addresources[i].rip = resources[i].rip;
				addresources[i].hostroute = resources[i].hostroute;
				addresources[i].hostrtgw = resources[i].hostrtgw;
				addresources[i].metric = resources[i].metric;
				addresources[i].vserverrhilevel = resources[i].vserverrhilevel;
				addresources[i].ospflsatype = resources[i].ospflsatype;
				addresources[i].ospfarea = resources[i].ospfarea;
				addresources[i].state = resources[i].state;
				addresources[i].vrid = resources[i].vrid;
				addresources[i].icmpresponse = resources[i].icmpresponse;
				addresources[i].ownernode = resources[i].ownernode;
				addresources[i].arpresponse = resources[i].arpresponse;
				addresources[i].td = resources[i].td;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
1361397
public static base_response add(nitro_service client, vpath resource) throws Exception {
		vpath addresource = new vpath();
		addresource.name = resource.name;
		addresource.destip = resource.destip;
		addresource.encapmode = resource.encapmode;
		return addresource.add_resource(client);
	}
580733
public static base_responses add(nitro_service client, lbroute6 resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			lbroute6 addresources[] = new lbroute6[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new lbroute6();
				addresources[i].network = resources[i].network;
				addresources[i].gatewayname = resources[i].gatewayname;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
305746
public static ip6tunnel get(nitro_service service, String name) throws Exception{
		ip6tunnel obj = new ip6tunnel();
		obj.set_name(name);
		ip6tunnel response = (ip6tunnel) obj.get_resource(service);
		return response;
	}
1108684
public static IStatus addSarlNatures(IProject project, IProgressMonitor monitor) {
		return addNatures(project, monitor, getSarlNatures());
	}
1270903
public static base_responses add(nitro_service client, route6 resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			route6 addresources[] = new route6[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new route6();
				addresources[i].network = resources[i].network;
				addresources[i].gateway = resources[i].gateway;
				addresources[i].vlan = resources[i].vlan;
				addresources[i].weight = resources[i].weight;
				addresources[i].distance = resources[i].distance;
				addresources[i].cost = resources[i].cost;
				addresources[i].advertise = resources[i].advertise;
				addresources[i].msr = resources[i].msr;
				addresources[i].monitor = resources[i].monitor;
				addresources[i].td = resources[i].td;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}