'Load the ring for this policy immediately.
:param swift_dir: path to rings'

def load_ring(self, swift_dir):

    if self.object_ring:
        return
    def validate_ring_data(ring_data):
        "\n                                                EC    specific    validation\n\n                                                Replica    count    check    -    we    need    _at_least_    (#data    +    #parity)    replicas\n                                                configured.        Also    if    the    replica    count    is    larger    than    exactly    that\n                                                number    there's    a    non-zero    risk    of    error    for    code    that    is\n                                                considering    the    number    of    nodes    in    the    primary    list    from    the    ring.\n                                                "
        configured_fragment_count = len(ring_data._replica2part2dev_id)
        required_fragment_count = (self.ec_n_unique_fragments * self.ec_duplication_factor)
        if (configured_fragment_count != required_fragment_count):
            raise RingLoadError(('EC    ring    for    policy    %s    needs    to    be    configured    with    exactly    %d    replicas.    Got    %d.' % (self.name, required_fragment_count, configured_fragment_count)))
    self.object_ring = Ring(swift_dir, ring_name=self.ring_name, validation_hook=validate_ring_data)
