Revision bfb3f9c2 snf-cyclades-app/synnefo/db/models.py

b/snf-cyclades-app/synnefo/db/models.py
567 567
    def get_subnet(self, version=4):
568 568
        for subnet in self.subnets.all():
569 569
            if subnet.ipversion == version:
570
                return subnet.cidr
570
                return subnet
571
        return None
571 572

  
572 573
    def ip_count(self):
573 574
        """Return the total and free IPv4 addresses of the network."""

Also available in: Unified diff