Skip to main content

Contract

Location in GUI: Application Management » Schemas

Diagram

Classes

templates (ndo.schemas)

NameTypeConstraintMandatoryDefault Value
contractsList[contracts]No

contracts (ndo.schemas.templates)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
scopeChoiceapplication-profile, tenant, context, globalNocontext
typeChoicebothWay, oneWayNobothWay
filtersList[filters]No
provider_to_consumer_filtersList[provider_to_consumer_filters]No
consumer_to_provider_filtersList[consumer_to_provider_filters]No
service_graphClass[service_graph]No

filters (ndo.schemas.templates.contracts)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
schemaStringNo
templateStringNo
logBooleantrue, falseNofalse

service_graph (ndo.schemas.templates.contracts)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
schemaStringNo
templateStringNo
nodesList[nodes]Yes

nodes (ndo.schemas.templates.contracts.service_graph)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
indexIntegermin: 1, max: 3No
providerClass[provider]Yes
consumerClass[consumer]Yes

provider (ndo.schemas.templates.contracts.service_graph.nodes)

NameTypeConstraintMandatoryDefault Value
bridge_domainStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
schemaStringNo
templateStringNo
sitesList[sites]Yes

consumer (ndo.schemas.templates.contracts.service_graph.nodes)

NameTypeConstraintMandatoryDefault Value
bridge_domainStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
schemaStringNo
templateStringNo
sitesList[sites]Yes

sites (ndo.schemas.templates.contracts.service_graph.nodes.provider)

NameTypeConstraintMandatoryDefault Value
nameStringYes
tenantStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
deviceStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
logical_interfaceStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
redirect_policyStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No

sites (ndo.schemas.templates.contracts.service_graph.nodes.consumer)

NameTypeConstraintMandatoryDefault Value
nameStringYes
tenantStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
deviceStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
logical_interfaceStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
redirect_policyStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No

Examples

ndo:
schemas:
- name: ABC
templates:
- name: TEMPLATE1
contracts:
- name: CONTRACT1
scope: context
type: bothWay
filters:
- name: FILTER1
schema: ABC
template: TEMPLATE1
log: true
service_graph:
name: SG1
nodes:
- name: FW1
provider:
bridge_domain: BD1
sites:
- name: APIC1
device: DEV1
logical_interface: INT1
redirect_policy: PBR1
consumer:
bridge_domain: BD1
sites:
- name: APIC1
device: DEV1
logical_interface: INT1
redirect_policy: PBR1