public static base_responses update ( nitro_service client , Interface resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { Interface updateresources [ ] = new Interface [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new Interface ( ) ; updateresources [ i ] . id = resources [ i ] . id ; updateresources [ i ] . speed = resources [ i ] . speed ; updateresources [ i ] . duplex = resources [ i ] . duplex ; updateresources [ i ] . flowctl = resources [ i ] . flowctl ; updateresources [ i ] . autoneg = resources [ i ] . autoneg ; updateresources [ i ] . hamonitor = resources [ i ] . hamonitor ; updateresources [ i ] . tagall = resources [ i ] . tagall ; updateresources [ i ] . trunk = resources [ i ] . trunk ; updateresources [ i ] . lacpmode = resources [ i ] . lacpmode ; updateresources [ i ] . lacpkey = resources [ i ] . lacpkey ; updateresources [ i ] . lagtype = resources [ i ] . lagtype ; updateresources [ i ] . lacppriority = resources [ i ] . lacppriority ; updateresources [ i ] . lacptimeout = resources [ i ] . lacptimeout ; updateresources [ i ] . ifalias = resources [ i ] . ifalias ; updateresources [ i ] . throughput = resources [ i ] . throughput ; updateresources [ i ] . bandwidthhigh = resources [ i ] . bandwidthhigh ; updateresources [ i ] . bandwidthnormal = resources [ i ] . bandwidthnormal ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update Interface resources .