Giter VIP home page Giter VIP logo

terraform-aci-contract's Introduction

Tests

This module is no longer maintained as it has been integrated into the nac-aci module.

Terraform ACI Contract Module

Manages ACI Contract

Location in GUI: Tenants » XXX » Contracts » Standard

Examples

module "aci_contract" {
  source  = "netascode/contract/aci"
  version = ">= 0.2.0"

  tenant      = "ABC"
  name        = "CON1"
  alias       = "CON1-ALIAS"
  description = "My Description"
  scope       = "global"
  qos_class   = "level4"
  target_dscp = "CS0"
  subjects = [{
    name          = "SUB1"
    alias         = "SUB1-ALIAS"
    description   = "Subject Description"
    service_graph = "SG1"
    qos_class     = "level5"
    target_dscp   = "CS1"
    filters = [{
      filter   = "FILTER1"
      action   = "deny"
      priority = "level1"
      log      = true
      no_stats = true
    }]
  }]
}

Requirements

Name Version
terraform >= 1.3.0
aci >= 2.0.0

Providers

Name Version
aci >= 2.0.0

Inputs

Name Description Type Default Required
tenant Tenant name. string n/a yes
name Contract name. string n/a yes
alias Contract alias. string "" no
description Contract description. string "" no
scope Contract scope. Choices: application-profile, tenant, context, global. string "context" no
qos_class Contract QoS Class. Choices: unspecified, level1, level2, level3, level4, level5, level6. string "unspecified" no
target_dscp Contract Target DSCP. Valid values are unspecified, CS0, CS1, AF11, AF12, AF13, CS2, AF21, AF22, AF23, CS4, AF41, AF42, AF43, CS5, VA, EF, CS6, CS7 or a number between 0 and 63. string "unspecified" no
subjects List of contract subjects. Choices action: permit, deny. Default value action: permit. Choices priority: default, level1, level2, level3. Default value priority: default. Default value log: false. Default value no_stats: false. Choices qos_class: unspecified, level1, level2, level3, level4, level5 orlevel6. Default value qos_class: unspecified. Choices dscp_target : unspecified, CS0, CS1, AF11, AF12, AF13, CS2, AF21, AF22, AF23, CS4, AF41, AF42, AF43, CS5, VA, EF, CS6 CS7 or a number between 0 and 63. Default value dscp_target: unspecified
list(object({
name = string
alias = optional(string, "")
description = optional(string, "")
service_graph = optional(string)
qos_class = optional(string, "unspecified")
target_dscp = optional(string, "unspecified")
filters = optional(list(object({
filter = string
action = optional(string, "permit")
priority = optional(string, "default")
log = optional(bool, false)
no_stats = optional(bool, false)
})), [])
}))
[] no

Outputs

Name Description
dn Distinguished name of vzBrCP object.
name Contract name.

Resources

Name Type
aci_rest_managed.vzBrCP resource
aci_rest_managed.vzRsSubjFiltAtt resource
aci_rest_managed.vzRsSubjGraphAtt resource
aci_rest_managed.vzSubj resource

terraform-aci-contract's People

Contributors

danischm avatar dependabot[bot] avatar jgomezve avatar

Watchers

 avatar

terraform-aci-contract's Issues

ACI fault code F1128 raised when service_graph is null

This code will generate a vzRsSubjGraphAtt object with no value for its tnVnsAbsGraphName attribute if no service_graph input is provided. A fault code F1128 is raised as a result.

The required action is to only create the object if service_graph is not null/empty.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.