Skip to content

✨ feat(iaas): add net teardown#129

Merged
jfbus merged 1 commit intomainfrom
teardown
Mar 18, 2026
Merged

✨ feat(iaas): add net teardown#129
jfbus merged 1 commit intomainfrom
teardown

Conversation

@jfbus
Copy link
Copy Markdown
Contributor

@jfbus jfbus commented Mar 17, 2026

Description

This PR adds two commands:

  • octl iaas net dependencies <net_id>
  • octl iaas net teardown <net_id>

Type of Change

Please check the relevant option(s):

  • 🐛 Bug fix
  • ✨ New feature
  • 🧹 Code cleanup or refactor
  • 📝 Documentation update
  • 🔧 Build or CI-related change
  • 🔒 Security fix
  • Other (specify):

How Has This Been Tested?

Please describe the test strategy:

  • Manual testing
  • Unit tests
  • Integration tests
  • Not tested yet

Commands used (if applicable):

cd cmd/testdata
terraform apply
octl iaas net teardown <net_id>

Checklist

  • I have followed the Contributing Guidelines
  • I have added tests or explained why they are not needed
  • I have updated relevant documentation (README, examples, etc.)
  • My changes follow the Conventional Commits specification
  • My commits include appropriate Gitmoji

Additional Context

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 17, 2026

WARNING : Differences in reference doc 🤔

 docs/reference/octl_iaas_net.md              |  2 ++
 docs/reference/octl_iaas_net_dependencies.md | 36 ++++++++++++++++++++++++++
 docs/reference/octl_iaas_net_teardown.md     | 38 ++++++++++++++++++++++++++++
 3 files changed, 76 insertions(+)
Detailed changes

docs/reference/octl_iaas_net.md

+* [octl iaas net dependencies](octl_iaas_net_dependencies.md)	 - Shows all dependencies of a net
+* [octl iaas net teardown](octl_iaas_net_teardown.md)	 - Tears down a net and its subresources

docs/reference/octl_iaas_net_dependencies.md

new file mode 100644
+## octl iaas net dependencies
+
+Shows all dependencies of a net
+
+```
+octl iaas net dependencies net_id [flags]
+```
+
+### Options
+
+```
+  -h, --help   help for dependencies
+```
+
+### Options inherited from parent commands
+
+```
+  -c, --columns string    columns to display - [+]<title>:<jq query for content>||<title>:<jq query for content>
+      --config string     Path of profile file (by default, ~/.osc/config.json)
+      --filter strings    comma separated list of filters for results - name:value,name:value, alias for jq filter 'select(.name | test("value"))'
+      --jq string         jq filter
+      --no-upgrade        do not check for new versions
+  -O, --out-file string   redirect output to file
+  -o, --output string     output format (raw, json, yaml, table, csv, none, base64) (default "raw")
+      --payload string    JSON content for query body
+      --profile string    Profile to use in profile file (by default, "default")
+      --single            convert single entry lists to a single object
+      --template string   JSON template file for query body
+  -v, --verbose           Verbose output
+  -y, --yes               answer yes to all prompts
+```
+
+### SEE ALSO
+
+* [octl iaas net](octl_iaas_net.md)	 - net commands
+

docs/reference/octl_iaas_net_teardown.md

new file mode 100644
+## octl iaas net teardown
+
+Tears down a net and its subresources
+
+```
+octl iaas net teardown net_id [flags]
+```
+
+### Options
+
+```
+  -h, --help               help for teardown
+      --teardown-vms       Tears down VM in net
+      --timeout duration   Timeout for a single resource deletion (default 10m0s)
+```
+
+### Options inherited from parent commands
+
+```
+  -c, --columns string    columns to display - [+]<title>:<jq query for content>||<title>:<jq query for content>
+      --config string     Path of profile file (by default, ~/.osc/config.json)
+      --filter strings    comma separated list of filters for results - name:value,name:value, alias for jq filter 'select(.name | test("value"))'
+      --jq string         jq filter
+      --no-upgrade        do not check for new versions
+  -O, --out-file string   redirect output to file
+  -o, --output string     output format (raw, json, yaml, table, csv, none, base64) (default "raw")
+      --payload string    JSON content for query body
+      --profile string    Profile to use in profile file (by default, "default")
+      --single            convert single entry lists to a single object
+      --template string   JSON template file for query body
+  -v, --verbose           Verbose output
+  -y, --yes               answer yes to all prompts
+```
+
+### SEE ALSO
+
+* [octl iaas net](octl_iaas_net.md)	 - net commands
+

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 17, 2026

Binary size: 39.1MB => 39.1MB (change +60KB, +0.1%) 😉

@jfbus jfbus marked this pull request as ready for review March 17, 2026 17:01
@jfbus jfbus added the kind/feature New feature or request label Mar 17, 2026
@jfbus jfbus force-pushed the teardown branch 3 times, most recently from f6edde0 to 7c875de Compare March 18, 2026 08:42
@jfbus jfbus merged commit 8bba195 into main Mar 18, 2026
7 checks passed
@jfbus jfbus deleted the teardown branch March 18, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature New feature or request

Development

Successfully merging this pull request may close these issues.

2 participants