public static base_responses add ( nitro_service client , iptunnel resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { iptunnel addresources [ ] = new iptunnel [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new iptunnel ( ) ; addresources [ i ] . name = resources [ i ] . name ; addresources [ i ] . remote = resources [ i ] . remote ; addresources [ i ] . remotesubnetmask = resources [ i ] . remotesubnetmask ; addresources [ i ] . local = resources [ i ] . local ; addresources [ i ] . protocol = resources [ i ] . protocol ; addresources [ i ] . ipsecprofilename = resources [ i ] . ipsecprofilename ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add iptunnel resources .