Skip to content

Add resources for address groups and service groups#322

Merged
abhimutant merged 5 commits intonutanix:task/m-PR-322from
svalabs:master
Feb 11, 2022
Merged

Add resources for address groups and service groups#322
abhimutant merged 5 commits intonutanix:task/m-PR-322from
svalabs:master

Conversation

@jan-walther
Copy link
Copy Markdown

This PR adds support for address_groups and service_groups as outlined in #170.

This PR also adds preliminary data sources for address_groups.

resource "nutanix_service_group" "test_service" {
  name = "test-2"
  description = "test"

  service_list {
      protocol = "TCP"
      tcp_port_range_list {
        start_port = 22
        end_port = 22
      }
      tcp_port_range_list {
        start_port = 2222
        end_port = 2222
      }
  }
}

resource "nutanix_address_group" "test_address" {
  name = "test"
  description = "test"

  ip_address_block_list {
    ip = "10.0.0.0"
    prefix_length = 24
  }
}

@jan-walther jan-walther force-pushed the master branch 2 times, most recently from e5bbc88 to 0503909 Compare December 27, 2021 16:03
@abhimutant
Copy link
Copy Markdown
Contributor

PR needs some changes that we are done with. We will merge it in new branch and cherry-pick the new changes and the test cases we added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Datasources for service groups along with test cases Allow usage of service and address groups in network_security_rules

4 participants