Use this API to update ipv6.
426963
public static base_response update(nitro_service client, ipv6 resource) throws Exception {
		ipv6 updateresource = new ipv6();
		updateresource.ralearning = resource.ralearning;
		updateresource.routerredirection = resource.routerredirection;
		updateresource.ndbasereachtime = resource.ndbasereachtime;
		updateresource.ndretransmissiontime = resource.ndretransmissiontime;
		updateresource.natprefix = resource.natprefix;
		updateresource.dodad = resource.dodad;
		return updateresource.update_resource(client);
	}
435775
public void setIpv6CidrBlockAssociationSet(java.util.Collection<SubnetIpv6CidrBlockAssociation> ipv6CidrBlockAssociationSet) {
        if (ipv6CidrBlockAssociationSet == null) {
            this.ipv6CidrBlockAssociationSet = null;
            return;
        }

        this.ipv6CidrBlockAssociationSet = new com.amazonaws.internal.SdkInternalList<SubnetIpv6CidrBlockAssociation>(ipv6CidrBlockAssociationSet);
    }
876218
public static base_response update(nitro_service client, inat resource) throws Exception {
		inat updateresource = new inat();
		updateresource.name = resource.name;
		updateresource.privateip = resource.privateip;
		updateresource.tcpproxy = resource.tcpproxy;
		updateresource.ftp = resource.ftp;
		updateresource.tftp = resource.tftp;
		updateresource.usip = resource.usip;
		updateresource.usnip = resource.usnip;
		updateresource.proxyip = resource.proxyip;
		updateresource.mode = resource.mode;
		return updateresource.update_resource(client);
	}
138693
public static base_responses update(nitro_service client, onlinkipv6prefix resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			onlinkipv6prefix updateresources[] = new onlinkipv6prefix[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new onlinkipv6prefix();
				updateresources[i].ipv6prefix = resources[i].ipv6prefix;
				updateresources[i].onlinkprefix = resources[i].onlinkprefix;
				updateresources[i].autonomusprefix = resources[i].autonomusprefix;
				updateresources[i].depricateprefix = resources[i].depricateprefix;
				updateresources[i].decrementprefixlifetimes = resources[i].decrementprefixlifetimes;
				updateresources[i].prefixvalidelifetime = resources[i].prefixvalidelifetime;
				updateresources[i].prefixpreferredlifetime = resources[i].prefixpreferredlifetime;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
628018
def expand_ipv6 (ip, num):
    
    i = ip.find("::")
    prefix = ip[:i]
    suffix = ip[i + 2:]
    count = prefix.count(":") + suffix.count(":")
    if prefix:
        count += 1
        prefix = prefix + ":"
    if suffix:
        count += 1
        suffix = ":" + suffix
    if count >= num:
        raise ValueError("invalid ipv6 number: %s" % ip)
    fill = (num - count - 1) * "0:" + "0"
    return prefix + fill + suffix
527883
public static base_response update(nitro_service client, nspbr6 resource) throws Exception {
		nspbr6 updateresource = new nspbr6();
		updateresource.name = resource.name;
		updateresource.action = resource.action;
		updateresource.srcipv6 = resource.srcipv6;
		updateresource.srcipop = resource.srcipop;
		updateresource.srcipv6val = resource.srcipv6val;
		updateresource.srcport = resource.srcport;
		updateresource.srcportop = resource.srcportop;
		updateresource.srcportval = resource.srcportval;
		updateresource.destipv6 = resource.destipv6;
		updateresource.destipop = resource.destipop;
		updateresource.destipv6val = resource.destipv6val;
		updateresource.destport = resource.destport;
		updateresource.destportop = resource.destportop;
		updateresource.destportval = resource.destportval;
		updateresource.srcmac = resource.srcmac;
		updateresource.protocol = resource.protocol;
		updateresource.protocolnumber = resource.protocolnumber;
		updateresource.vlan = resource.vlan;
		updateresource.Interface = resource.Interface;
		updateresource.priority = resource.priority;
		updateresource.msr = resource.msr;
		updateresource.monitor = resource.monitor;
		updateresource.nexthop = resource.nexthop;
		updateresource.nexthopval = resource.nexthopval;
		updateresource.nexthopvlan = resource.nexthopvlan;
		return updateresource.update_resource(client);
	}
1039925
public static base_responses update(nitro_service client, bridgegroup resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			bridgegroup updateresources[] = new bridgegroup[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new bridgegroup();
				updateresources[i].id = resources[i].id;
				updateresources[i].ipv6dynamicrouting = resources[i].ipv6dynamicrouting;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
26112
public void setIpv6Addresses(java.util.Collection<String> ipv6Addresses) {
        if (ipv6Addresses == null) {
            this.ipv6Addresses = null;
            return;
        }

        this.ipv6Addresses = new java.util.ArrayList<String>(ipv6Addresses);
    }
1201038
def update(cls, args):
        """"""
        kytos_api = KytosConfig().config.get('kytos', 'api')
        url = f"{kytos_api}api/kytos/core/web/update"
        version = args["<version>"]
        if version:
            url += f"/{version}"

        try:
            result = requests.post(url)
        except(HTTPError, URLError, requests.exceptions.ConnectionError):
            LOG.error("Can't connect to server: %s", kytos_api)
            return

        if result.status_code != 200:
            LOG.info("Error while updating web ui: %s", result.content)
        else:
            LOG.info("Web UI updated.")
1116097
public static onlinkipv6prefix get(nitro_service service, String ipv6prefix) throws Exception{
		onlinkipv6prefix obj = new onlinkipv6prefix();
		obj.set_ipv6prefix(ipv6prefix);
		onlinkipv6prefix response = (onlinkipv6prefix) obj.get_resource(service);
		return response;
	}
303609
private function expandIPv6InFilters(&$ip) {
        if ($this->isIPv6($ip)) {
            if (($pos = strpos($ip, '/')) !== false) {
                // The IPv6 has a routing prefix attached to it
                $mask = substr($ip, $pos);
                $ip = $this->expandIPv6(substr($ip, 0, $pos)) . $mask;
            } else {
                // Regular IPv6 address
                $ip = $this->expandIPv6($ip);
            }
        }
    }
1029066
public static base_responses update(nitro_service client, nspbr6 resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nspbr6 updateresources[] = new nspbr6[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new nspbr6();
				updateresources[i].name = resources[i].name;
				updateresources[i].action = resources[i].action;
				updateresources[i].srcipv6 = resources[i].srcipv6;
				updateresources[i].srcipop = resources[i].srcipop;
				updateresources[i].srcipv6val = resources[i].srcipv6val;
				updateresources[i].srcport = resources[i].srcport;
				updateresources[i].srcportop = resources[i].srcportop;
				updateresources[i].srcportval = resources[i].srcportval;
				updateresources[i].destipv6 = resources[i].destipv6;
				updateresources[i].destipop = resources[i].destipop;
				updateresources[i].destipv6val = resources[i].destipv6val;
				updateresources[i].destport = resources[i].destport;
				updateresources[i].destportop = resources[i].destportop;
				updateresources[i].destportval = resources[i].destportval;
				updateresources[i].srcmac = resources[i].srcmac;
				updateresources[i].protocol = resources[i].protocol;
				updateresources[i].protocolnumber = resources[i].protocolnumber;
				updateresources[i].vlan = resources[i].vlan;
				updateresources[i].Interface = resources[i].Interface;
				updateresources[i].priority = resources[i].priority;
				updateresources[i].msr = resources[i].msr;
				updateresources[i].monitor = resources[i].monitor;
				updateresources[i].nexthop = resources[i].nexthop;
				updateresources[i].nexthopval = resources[i].nexthopval;
				updateresources[i].nexthopvlan = resources[i].nexthopvlan;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
393459
def add_ipv6addr(self, ipv6addr):
        
        for addr in self.ipv6addrs:
            if ((isinstance(addr, dict) and addr['ipv6addr'] == ipv6addr) or
                (isinstance(addr, HostIPv4) and addr.ipv6addr == ipv6addr)):
                raise ValueError('Already exists')
        self.ipv6addrs.append({'ipv6addr': ipv6addr})
762485
def update_host(self, url: URL) -> None:
        """"""
        # get host/port
        if not url.host:
            raise InvalidURL(url)

        # basic auth info
        username, password = url.user, url.password
        if username:
            self.auth = helpers.BasicAuth(username, password or '')
539604
def expand_ip (ip):
    
    if _ipv4_re.match(ip) or \
       _ipv6_re.match(ip) or \
       _ipv6_ipv4_re.match(ip):
        return (ip, 1)
    if _ipv6_abbr_re.match(ip):
        return (expand_ipv6(ip, 8), 1)
    if _ipv6_ipv4_abbr_re.match(ip):
        i = ip.rfind(":") + 1
        return (expand_ipv6(ip[:i], 6) + ip[i:], 1)
    return (ip, 0)
1101326
public static base_response update(nitro_service client, vpnvserver resource) throws Exception {
		vpnvserver updateresource = new vpnvserver();
		updateresource.name = resource.name;
		updateresource.ipv46 = resource.ipv46;
		updateresource.authentication = resource.authentication;
		updateresource.doublehop = resource.doublehop;
		updateresource.icaonly = resource.icaonly;
		updateresource.maxaaausers = resource.maxaaausers;
		updateresource.downstateflush = resource.downstateflush;
		updateresource.listenpolicy = resource.listenpolicy;
		updateresource.listenpriority = resource.listenpriority;
		updateresource.tcpprofilename = resource.tcpprofilename;
		updateresource.httpprofilename = resource.httpprofilename;
		updateresource.comment = resource.comment;
		updateresource.appflowlog = resource.appflowlog;
		updateresource.icmpvsrresponse = resource.icmpvsrresponse;
		updateresource.netprofile = resource.netprofile;
		updateresource.cginfrahomepageredirect = resource.cginfrahomepageredirect;
		updateresource.maxloginattempts = resource.maxloginattempts;
		updateresource.failedlogintimeout = resource.failedlogintimeout;
		return updateresource.update_resource(client);
	}
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;
	}