Esempio n. 1
0
 /** 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);
 }
Esempio n. 2
0
 /** 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);
 }
Esempio n. 3
0
 /**
  * Use this API to unset the properties of nsip resource. Properties that need to be unset are
  * specified in args array.
  */
 public static base_response unset(nitro_service client, nsip resource, String[] args)
     throws Exception {
   nsip unsetresource = new nsip();
   unsetresource.ipaddress = resource.ipaddress;
   unsetresource.td = resource.td;
   return unsetresource.unset_resource(client, args);
 }
Esempio n. 4
0
 /** Use this API to disable nsip. */
 public static base_response disable(nitro_service client, nsip resource) throws Exception {
   nsip disableresource = new nsip();
   disableresource.ipaddress = resource.ipaddress;
   disableresource.td = resource.td;
   return disableresource.perform_operation(client, "disable");
 }
Esempio n. 5
0
 /** Use this API to delete nsip. */
 public static base_response delete(nitro_service client, nsip resource) throws Exception {
   nsip deleteresource = new nsip();
   deleteresource.ipaddress = resource.ipaddress;
   deleteresource.td = resource.td;
   return deleteresource.delete_resource(client);
 }