public static base_responses add ( nitro_service client , arp resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { arp addresources [ ] = new arp [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new arp ( ) ; addresources [ i ] . ipaddress = resources [ i ] . ipaddress ; addresources [ i ] . td = resources [ i ] . td ; addresources [ i ] . mac = resources [ i ] . mac ; addresources [ i ] . ifnum = resources [ i ] . ifnum ; addresources [ i ] . ownernode = resources [ i ] . ownernode ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add arp resources .