constants.py 442 B

12345678910111213141516171819
  1. from .choices import IPAddressRoleChoices
  2. # BGP ASN bounds
  3. BGP_ASN_MIN = 1
  4. BGP_ASN_MAX = 2**32 - 1
  5. #
  6. # IP addresses
  7. #
  8. IPADDRESS_ROLES_NONUNIQUE = (
  9. # IPAddress roles which are exempt from unique address enforcement
  10. IPAddressRoleChoices.ROLE_ANYCAST,
  11. IPAddressRoleChoices.ROLE_VIP,
  12. IPAddressRoleChoices.ROLE_VRRP,
  13. IPAddressRoleChoices.ROLE_HSRP,
  14. IPAddressRoleChoices.ROLE_GLBP,
  15. IPAddressRoleChoices.ROLE_CARP,
  16. )