Skip to content

✨ feat(iaas): add nic unlink#124

Merged
jfbus merged 1 commit intomainfrom
pipe
Mar 16, 2026
Merged

✨ feat(iaas): add nic unlink#124
jfbus merged 1 commit intomainfrom
pipe

Conversation

@jfbus
Copy link
Copy Markdown
Contributor

@jfbus jfbus commented Mar 13, 2026

Description

This PR adds iaas nic unlink, alias based on a ReadNic piped to an UnlinkNic.

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

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 13, 2026

WARNING : Differences in reference doc 🤔

 docs/reference/octl_iaas_nic.md        |  1 +
 docs/reference/octl_iaas_nic_unlink.md | 44 ++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
Detailed changes

docs/reference/octl_iaas_nic.md

+* [octl iaas nic unlink](octl_iaas_nic_unlink.md)	 - alias for api ReadNics --Filters.NicIds nic_id | UnlinkNic --LinkNicId {{.LinkNic.LinkNicId}}

docs/reference/octl_iaas_nic_unlink.md

new file mode 100644
+## octl iaas nic unlink
+
+alias for api ReadNics --Filters.NicIds nic_id | UnlinkNic --LinkNicId {{.LinkNic.LinkNicId}}
+
+### Synopsis
+
+> *alias for api ReadNics --Filters.NicIds nic_id | UnlinkNic --LinkNicId {{.LinkNic.LinkNicId}}*
+
+Detaches a network interface card (NIC) from a virtual machine (VM).
+
+The primary NIC cannot be detached.
+
+```
+octl iaas nic unlink nic_id [flags]
+```
+
+### Options
+
+```
+  -h, --help   help for unlink
+```
+
+### 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 nic](octl_iaas_nic.md)	 - nic commands
+

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 13, 2026

Binary size: 39.1MB => 39.1MB (change +8KB, +0.0%) 😉

@jfbus jfbus force-pushed the pipe branch 5 times, most recently from 718cbf1 to 89cf134 Compare March 13, 2026 14:18
@jfbus jfbus marked this pull request as ready for review March 13, 2026 14:28
ryohkhn
ryohkhn previously approved these changes Mar 16, 2026
@jfbus jfbus merged commit 45a0b1f into main Mar 16, 2026
7 checks passed
@jfbus jfbus deleted the pipe branch March 16, 2026 13:57
@jfbus jfbus added the kind/feature New feature or request label Mar 18, 2026
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