#NEWLINE# def test_mcast_pools( ) : #NEWLINE# #INDENT# mcastpool_create_body = client_session . extract_resource_body_schema ( 'vdnMulticastPools' , 'create' ) #NEWLINE# client_session . view_body_dict ( mcastpool_create_body ) #NEWLINE# mcastpool_create_body [ 'multicastRange' ] [ 'desc' ] = 'Test' #NEWLINE# mcastpool_create_body [ 'multicastRange' ] [ 'begin' ] = '235.0.0.0' #NEWLINE# mcastpool_create_body [ 'multicastRange' ] [ 'end' ] = '235.1.1.1' #NEWLINE# mcastpool_create_body [ 'multicastRange' ] [ 'name' ] = 'legacy' #NEWLINE# create_response = client_session . create ( 'vdnMulticastPools' , request_body_dict = mcastpool_create_body ) #NEWLINE# client_session . view_response ( create_response ) #NEWLINE# get_mcast_pools = client_session . read ( 'vdnMulticastPools' ) #NEWLINE# client_session . view_response ( get_mcast_pools ) #NEWLINE# time . sleep ( 5 ) #NEWLINE# mcastpool_update_body = client_session . extract_resource_body_schema ( 'vdnMulticastPool' , 'update' ) #NEWLINE# mcastpool_update_body [ 'multicastRange' ] [ 'end' ] = '235.3.1.1' #NEWLINE# mcastpool_update_body [ 'multicastRange' ] [ 'name' ] = 'Python' #NEWLINE# update_response = client_session . update ( 'vdnMulticastPool' , uri_parameters = { #NEWLINE# #INDENT# 'multicastAddresssRangeId' : create_response [ 'objectId' ] , #NEWLINE# #UNINDENT# } , request_body_dict = mcastpool_update_body ) #NEWLINE# client_session . view_response ( update_response ) #NEWLINE# get_mcast_pool = client_session . read ( 'vdnMulticastPool' , uri_parameters = { #NEWLINE# #INDENT# 'multicastAddresssRangeId' : create_response [ 'objectId' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# client_session . view_response ( get_mcast_pool ) #NEWLINE# client_session . delete ( 'vdnMulticastPool' , uri_parameters = { #NEWLINE# #INDENT# 'multicastAddresssRangeId' : create_response [ 'objectId' ] , #NEWLINE# #UNINDENT# } )