/** Use this API to add nsip. */ public static base_response add(nitro_service client, nsip resource) throws Exception { nsip addresource = new nsip(); addresource.ipaddress = resource.ipaddress; addresource.netmask = resource.netmask; addresource.type = resource.type; addresource.arp = resource.arp; addresource.icmp = resource.icmp; addresource.vserver = resource.vserver; addresource.telnet = resource.telnet; addresource.ftp = resource.ftp; addresource.gui = resource.gui; addresource.ssh = resource.ssh; addresource.snmp = resource.snmp; addresource.mgmtaccess = resource.mgmtaccess; addresource.restrictaccess = resource.restrictaccess; addresource.dynamicrouting = resource.dynamicrouting; addresource.ospf = resource.ospf; addresource.bgp = resource.bgp; addresource.rip = resource.rip; addresource.hostroute = resource.hostroute; addresource.hostrtgw = resource.hostrtgw; addresource.metric = resource.metric; addresource.vserverrhilevel = resource.vserverrhilevel; addresource.ospflsatype = resource.ospflsatype; addresource.ospfarea = resource.ospfarea; addresource.state = resource.state; addresource.vrid = resource.vrid; addresource.icmpresponse = resource.icmpresponse; addresource.ownernode = resource.ownernode; addresource.arpresponse = resource.arpresponse; addresource.td = resource.td; return addresource.add_resource(client); }
/** Use this API to update nsip. */ public static base_response update(nitro_service client, nsip resource) throws Exception { nsip updateresource = new nsip(); updateresource.ipaddress = resource.ipaddress; updateresource.td = resource.td; updateresource.netmask = resource.netmask; updateresource.arp = resource.arp; updateresource.icmp = resource.icmp; updateresource.vserver = resource.vserver; updateresource.telnet = resource.telnet; updateresource.ftp = resource.ftp; updateresource.gui = resource.gui; updateresource.ssh = resource.ssh; updateresource.snmp = resource.snmp; updateresource.mgmtaccess = resource.mgmtaccess; updateresource.restrictaccess = resource.restrictaccess; updateresource.dynamicrouting = resource.dynamicrouting; updateresource.ospf = resource.ospf; updateresource.bgp = resource.bgp; updateresource.rip = resource.rip; updateresource.hostroute = resource.hostroute; updateresource.hostrtgw = resource.hostrtgw; updateresource.metric = resource.metric; updateresource.vserverrhilevel = resource.vserverrhilevel; updateresource.ospflsatype = resource.ospflsatype; updateresource.ospfarea = resource.ospfarea; updateresource.vrid = resource.vrid; updateresource.icmpresponse = resource.icmpresponse; updateresource.arpresponse = resource.arpresponse; return updateresource.update_resource(client); }