Skip to content

Commit

Permalink
[ignore] Fixed documentation and comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
anvitha-jain authored and lhercot committed Mar 25, 2024
1 parent 4e24577 commit ae49748
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/resources/function_node.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource "aci_function_node" "example" {
- `name` - (Required) Name of the Function Node object. Type: String.
- The valid function node name format for cloud APICs is `NX`, where X is a number starting with 0.
- The valid function node name format for on-prem APICs is `NX`, where X is a number starting with 1.
- The valid function node - copy name format for on-prem APICs is `CPX`, where X is a number starting with 1.
- The valid copy function node name format for on-premises APICs is `CPX`, where X is a number starting with 1.
- `annotation` - (Optional) Annotation of the Function Node object. Type: String.
- `description` - (Optional) Description of the Function Node object. Type: String.
- `func_template_type` - (Optional) Function Template type of the Function Node object. Allowed values: "OTHER", "FW_TRANS", "FW_ROUTED", "CLOUD_VENDOR_LB", "CLOUD_VENDOR_FW", "CLOUD_NATIVE_LB", "CLOUD_NATIVE_FW", "ADC_TWO_ARM", "ADC_ONE_ARM". Default value: "OTHER". Type: String.
Expand Down
9 changes: 6 additions & 3 deletions examples/function_node/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ provider "aci" {
data "aci_tenant" "tf_tenant" {
name = "tf_ansible_test"
}

data "aci_vrf" "tf_vrf" {
tenant_dn = data.aci_tenant.tf_tenant.id
name = "tf_vrf"
Expand All @@ -26,10 +27,12 @@ data "aci_cloud_context_profile" "ccp1" {
tenant_dn = data.aci_tenant.tf_tenant.id
name = "tf_ccp"
}

data "aci_cloud_cidr_pool" "cidr1" {
cloud_context_profile_dn = data.aci_cloud_context_profile.ccp1.id
addr = "10.20.0.0/25"
}

data "aci_cloud_subnet" "cs1" {
cloud_cidr_pool_dn = data.aci_cloud_cidr_pool.cidr1.id
ip = "10.20.0.0/25"
Expand Down Expand Up @@ -67,13 +70,13 @@ resource "aci_cloud_l4_l7_native_load_balancer" "cloud_nlb" {
relation_cloud_rs_ldev_to_cloud_subnet = [data.aci_cloud_subnet.cs1.id]
allow_all = "yes"
is_static_ip = "yes"
static_ip_addresses = ["10.20.0.0"]
static_ip_addresses = ["10.20.0.0"]
scheme = "internal"
cloud_l4l7_load_balancer_type = "network"
}

# 1. Create first L4-L7 Service Graph Template 'sg1' with type cloud
# Create two nodes with basic parameters
# Add two nodes with basic parameters
# - The first node 'N0' with type ADC_ONE_ARM and relation to the cloud native load balancer
# - The second node 'N1' with type FW_ROUTED and relation to the 3rd party firewall
# Create the connection between the templates ('T1 - consumer' and 'T2 - provider') and nodes ('N0' and 'N1').
Expand Down Expand Up @@ -153,7 +156,7 @@ resource "aci_connection" "sg1_n1-t1" {
}

# 2. Create second L4-L7 Service Graph Template 'sg2' with type cloud
# Create two nodes with additional parameters
# Add two nodes with additional parameters
# - The first node 'N0' with type ADC_ONE_ARM and relation to the cloud native load balancer
# - The second node 'N1' with type FW_ROUTED and relation to the 3rd party firewall
# Create the connection between the templates ('T1 - consumer' and 'T2 - provider') and nodes ('N0' and 'N1').
Expand Down
2 changes: 1 addition & 1 deletion legacy-docs/docs/r/function_node.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource "aci_function_node" "example" {
- `name` - (Required) Name of the Function Node object. Type: String.
- The valid function node name format for cloud APICs is `NX`, where X is a number starting with 0.
- The valid function node name format for on-prem APICs is `NX`, where X is a number starting with 1.
- The valid function node - copy name format for on-prem APICs is `CPX`, where X is a number starting with 1.
- The valid copy function node name format for on-premises APICs is `CPX`, where X is a number starting with 1.
- `annotation` - (Optional) Annotation of the Function Node object. Type: String.
- `description` - (Optional) Description of the Function Node object. Type: String.
- `func_template_type` - (Optional) Function Template type of the Function Node object. Allowed values: "OTHER", "FW_TRANS", "FW_ROUTED", "CLOUD_VENDOR_LB", "CLOUD_VENDOR_FW", "CLOUD_NATIVE_LB", "CLOUD_NATIVE_FW", "ADC_TWO_ARM", "ADC_ONE_ARM". Default value: "OTHER". Type: String.
Expand Down

0 comments on commit ae49748

Please sign in to comment.