OpenStack Networking (Neutron)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

46 lines
1.4 KiB

  1. # Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
  2. # All rights reserved.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  5. # not use this file except in compliance with the License. You may obtain
  6. # a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. # License for the specific language governing permissions and limitations
  14. # under the License.
  15. from neutron_lib.api import extensions
  16. from neutron_lib import constants
  17. class Subnetallocation(extensions.ExtensionDescriptor):
  18. """Extension class supporting subnet allocation."""
  19. @classmethod
  20. def get_name(cls):
  21. return "Subnet Allocation"
  22. @classmethod
  23. def get_alias(cls):
  24. return constants.SUBNET_ALLOCATION_EXT_ALIAS
  25. @classmethod
  26. def get_description(cls):
  27. return "Enables allocation of subnets from a subnet pool"
  28. @classmethod
  29. def get_updated(cls):
  30. return "2015-03-30T10:00:00-00:00"
  31. @classmethod
  32. def get_resources(cls):
  33. """Returns Ext Resources."""
  34. return []
  35. def get_extended_resources(self, version):
  36. return {}