<s> from openflow . optin_manager . flowspace . utils import * <EOL> def approve ( request_info ) : <EOL> '''<STR_LIT>''' <EOL> if "<STR_LIT>" not in request_info : <EOL> return [ ] <EOL> if ( "<STR_LIT>" in request_info and <EOL> dotted_ip_to_int ( request_info [ "<STR_LIT>" ] ) != <EOL> dotted_ip_to_int ( request_info [ "<STR_LIT>" ] ) ) : <EOL> return [ ] <EOL> if ( "<STR_LIT>" in request_info and <EOL> dotted_ip_to_int ( request_info [ "<STR_LIT>" ] ) != <EOL> dotted_ip_to_int ( request_info [ "<STR_LIT>" ] ) ) : <EOL> return [ ] <EOL> if ( "<STR_LIT>" in request_info ) and ( "<STR_LIT>" not in request_info ) : <EOL> request_info [ "<STR_LIT>" ] = request_info [ "<STR_LIT>" ] <EOL> if ( "<STR_LIT>" in request_info ) and ( "<STR_LIT>" not in request_info ) : <EOL> request_info [ "<STR_LIT>" ] = request_info [ "<STR_LIT>" ] <EOL> return_array = [ { } ] <EOL> if "<STR_LIT>" in request_info : <EOL> return_array [ <NUM_LIT:0> ] [ "<STR_LIT>" ] = dotted_ip_to_int ( request_info [ "<STR_LIT>" ] ) <EOL> return_array [ <NUM_LIT:0> ] [ "<STR_LIT>" ] = dotted_ip_to_int ( request_info [ "<STR_LIT>" ] ) <EOL> if "<STR_LIT>" in request_info : <EOL> return_array [ <NUM_LIT:0> ] [ "<STR_LIT>" ] = dotted_ip_to_int ( request_info [ "<STR_LIT>" ] ) <EOL> return_array [ <NUM_LIT:0> ] [ "<STR_LIT>" ] = dotted_ip_to_int ( request_info [ "<STR_LIT>" ] ) <EOL> if "<STR_LIT>" in request_info : <EOL> return_array [ <NUM_LIT:0> ] [ "<STR_LIT>" ] = mac_to_int ( request_info [ "<STR_LIT>" ] ) <EOL> return_array [ <NUM_LIT:0> ] [ "<STR_LIT>" ] = mac_to_int ( request_info [ "<STR_LIT>" ] ) <EOL> if "<STR_LIT>" in request_info : <EOL> return_array [ <NUM_LIT:0> ] [ "<STR_LIT>" ] = mac_to_int ( request_info [ "<STR_LIT>" ] ) <EOL> return_array [ <NUM_LIT:0> ] [ "<STR_LIT>" ] = mac_to_int ( request_info [ "<STR_LIT>" ] ) <EOL> return return_array </s>
