def create_firewall_policy(kwargs=None, call=None):
    '''
    Create a firewall policy
    '''
    if call == 'action':
        raise SaltCloudSystemExit(
            'The create_firewall_policy function must be called with '
            '-f or --function'
        )

    conn = get_conn()

    # Assemble the composite FirewallPolicy and FirewallPolicyRule[] objects.
    getFwpResult = _get_firewall_policy(kwargs)

    data = conn.create_firewall_policy(
        firewall_policy=getFwpResult['firewall_policy'],
        firewall_policy_rules=getFwpResult['firewall_policy_rules']
    )

    return {'FirewallPolicy': data}
def create_firewall_policy ( kwargs = None , call = None ) : if call == 'action' : raise SaltCloudSystemExit ( 'The create_firewall_policy function must be called with ' '-f or --function' ) conn = get_conn ( ) getFwpResult = _get_firewall_policy ( kwargs ) data = conn . create_firewall_policy ( firewall_policy = getFwpResult [ 'firewall_policy' ] , firewall_policy_rules = getFwpResult [ 'firewall_policy_rules' ] ) return { 'FirewallPolicy' : data }
Create a firewall policy