public static base_responses add ( nitro_service client , nsacl6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nsacl6 addresources [ ] = new nsacl6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new nsacl6 ( ) ; addresources [ i ] . acl6name = resources [ i ] . acl6name ; addresources [ i ] . acl6action = resources [ i ] . acl6action ; addresources [ i ] . td = resources [ i ] . td ; addresources [ i ] . srcipv6 = resources [ i ] . srcipv6 ; addresources [ i ] . srcipop = resources [ i ] . srcipop ; addresources [ i ] . srcipv6val = resources [ i ] . srcipv6val ; addresources [ i ] . srcport = resources [ i ] . srcport ; addresources [ i ] . srcportop = resources [ i ] . srcportop ; addresources [ i ] . srcportval = resources [ i ] . srcportval ; addresources [ i ] . destipv6 = resources [ i ] . destipv6 ; addresources [ i ] . destipop = resources [ i ] . destipop ; addresources [ i ] . destipv6val = resources [ i ] . destipv6val ; addresources [ i ] . destport = resources [ i ] . destport ; addresources [ i ] . destportop = resources [ i ] . destportop ; addresources [ i ] . destportval = resources [ i ] . destportval ; addresources [ i ] . ttl = resources [ i ] . ttl ; addresources [ i ] . srcmac = resources [ i ] . srcmac ; addresources [ i ] . protocol = resources [ i ] . protocol ; addresources [ i ] . protocolnumber = resources [ i ] . protocolnumber ; addresources [ i ] . vlan = resources [ i ] . vlan ; addresources [ i ] . Interface = resources [ i ] . Interface ; addresources [ i ] . established = resources [ i ] . established ; addresources [ i ] . icmptype = resources [ i ] . icmptype ; addresources [ i ] . icmpcode = resources [ i ] . icmpcode ; addresources [ i ] . priority = resources [ i ] . priority ; addresources [ i ] . state = resources [ i ] . state ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add nsacl6 resources .