# Path: networking_bgpvpn_heat/_i18n.py
# DOMAIN = "networking_bgpvpn_heat"
# _C = _translators.contextual_form
# _P = _translators.plural_form
# def get_available_languages():


from heat.common import exception
from heat.engine import attributes
from heat.engine.clients.os.neutron import neutron_constraints
from heat.engine import constraints
from heat.engine import properties
from heat.engine.resources.openstack.neutron import neutron
from networking_bgpvpn_heat._i18n import _
        ),
        ADVERTISE_FIXED_IPS: properties.Schema(
            properties.Schema.BOOLEAN,
            _('whether or not the fixed IPs of he port will be advertised '
              'into the BGPVPN.'),
        ),
        ROUTES: properties.Schema(
            properties.Schema.LIST,
            _('Defines routes to advertise into the BGPVPN, and for which '
              'this port will be the nexthop'),
            schema=properties.Schema(
                properties.Schema.MAP,
                schema={
                    TYPE: properties.Schema(
                        properties.Schema.STRING,
                        description=_('Type of the route.'),
                        constraints=[
                            constraints.AllowedValues(_ROUTE_TYPE_VALUES)
                        ],
                        required=True
                    ),
                    PREFIX: properties.Schema(
                        properties.Schema.STRING,
                        description=_('Prefix to readvertise.'),
                        constraints=[
                            constraints.CustomConstraint('net_cidr')
                        ]
                    ),
                    FROM_BGPVPN: properties.Schema(
                        properties.Schema.STRING,

# Path: networking_bgpvpn_heat/_i18n.py
# DOMAIN = "networking_bgpvpn_heat"
# _C = _translators.contextual_form
# _P = _translators.plural_form
# def get_available_languages():


# Path: networking_bgpvpn_heat/bgpvpnservice.py
from heat.common import exception
from heat.engine import attributes
from heat.engine.clients.os.neutron import neutron_constraints
from heat.engine import constraints
from heat.engine import properties
from heat.engine.resources.openstack.neutron import neutron
from networking_bgpvpn_heat._i18n import _

        ),
        ADVERTISE_FIXED_IPS: properties.Schema(
            properties.Schema.BOOLEAN,
            _('whether or not the fixed IPs of he port will be advertised '
              'into the BGPVPN.'),
        ),
        ROUTES: properties.Schema(
            properties.Schema.LIST,
            _('Defines routes to advertise into the BGPVPN, and for which '
              'this port will be the nexthop'),
            schema=properties.Schema(
                properties.Schema.MAP,
                schema={
                    TYPE: properties.Schema(
                        properties.Schema.STRING,
                        description=_('Type of the route.'),
                        constraints=[
                            constraints.AllowedValues(_ROUTE_TYPE_VALUES)
                        ],
                        required=True
                    ),
                    PREFIX: properties.Schema(
                        properties.Schema.STRING,
                        description=_('Prefix to readvertise.'),
                        constraints=[
                            constraints.CustomConstraint('net_cidr')
                        ]
                    ),
                    FROM_BGPVPN: properties.Schema(
                        properties.Schema.STRING,

                        description=_('BGPVPN from which to readvertise routes'