(vpn_client)
return (
        vpn_client.vpn.subnet
        and vpn_client.vpn.subnet.subnetdivisionrule_set.filter(
            organization_id=vpn_client.config.device.organization,
            type=(
                'openwisp_controller.subnet_division.rule_types.'
                'vpn.VpnSubnetDivisionRuleType'
            ),
        ).exists()
    )
Overrides the the default behavior of VpnClient.auto_ip
    which automatically assigns an IP to the VpnClient.
    This assignment is handled by SubnetDivision rule,
    so we need to skip it here.

    This function is called by "VpnClient._auto_ip" method.
Overrides the the default behavior of VpnClient.auto_ip
    which automatically assigns an IP to the VpnClient.
    This assignment is handled by SubnetDivision rule,
    so we need to skip it here.
Overrides the the default behavior of VpnClient . auto_ip which automatically assigns an IP to the VpnClient . This assignment is handled by SubnetDivision rule so we need to skip it here .
def subnet_division_vpnclient_auto_ip(vpn_client):
    """
    Overrides the the default behavior of VpnClient.auto_ip
    which automatically assigns an IP to the VpnClient.
    This assignment is handled by SubnetDivision rule,
    so we need to skip it here.

    This function is called by "VpnClient._auto_ip" method.
    """
    return (
        vpn_client.vpn.subnet
        and vpn_client.vpn.subnet.subnetdivisionrule_set.filter(
            organization_id=vpn_client.config.device.organization,
            type=(
                'openwisp_controller.subnet_division.rule_types.'
                'vpn.VpnSubnetDivisionRuleType'
            ),
        ).exists()
    )
def subnet_division_vpnclient_auto_ip ( vpn_client ) : return ( vpn_client . vpn . subnet and vpn_client . vpn . subnet . subnetdivisionrule_set . filter ( organization_id = vpn_client . config . device . organization , type = ( 'openwisp_controller.subnet_division.rule_types.' 'vpn.VpnSubnetDivisionRuleType' ) , ) . exists ( ) )