Skip to content
Snippets Groups Projects
Select Git revision
  • c9c725a02e3e7b024774604cc39927172035a48d
  • develop default protected
  • feature/clean-callback-progress
  • master protected
  • authorship-fix-from-develop
  • 1048-service-config-backfilling
  • feature/nat-1211-edgeport-lacp-xmit
  • fix/nat-1120-sdp-validation
  • NAT-1154-import-edge-port-update
  • fix/l3-imports
  • feature/10GGBS-NAT-980
  • fix/NAT-1009/fix-redeploy-base-config-if-there-is-a-vprn
  • 4.24
  • 4.23
  • 4.22
  • 4.21
  • 4.20
  • 4.19
  • 4.18
  • 4.17
  • 4.16
  • 4.15
  • 4.14
  • 4.13
  • 4.12
  • 4.11
  • 4.10
  • 4.8
  • 4.5
  • 4.4
  • 4.3
  • 4.2
32 results

main.py

Blame
  • shared_enums.py 857 B
    """Shared choices for the different models."""
    
    from enum import StrEnum
    
    from pydantic_forms.types import strEnum
    
    
    class Vendor(strEnum):
        """Enumerator for the different product vendors that are supported."""
    
        JUNIPER = "juniper"
        NOKIA = "nokia"
    
    
    class ConnectionStrategy(strEnum):
        """An enumerator for the connection Strategies."""
    
        IN_BAND = "IN BAND"
        OUT_OF_BAND = "OUT OF BAND"
    
    
    class SNMPVersion(StrEnum):
        """An enumerator for the two relevant versions of :term:`SNMP`: v2c and 3."""
    
        V2C = "v2c"
        V3 = "v3"
    
    
    class APType(strEnum):
        """Enumerator of the types of Access Port."""
    
        PRIMARY = "PRIMARY"
        BACKUP = "BACKUP"
        LOAD_BALANCED = "LOAD_BALANCED"
    
    
    class SBPType(strEnum):
        """Enumerator for the two allowed types of service binding port: layer 2 or layer 3."""
    
        L2 = "l2"
        L3 = "l3"