-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CP-49367 Implement xenserver_pif provider data source #18
Conversation
acefei
commented
Jun 18, 2024
a2d5790
to
110f9b5
Compare
// This description is used by the documentation generator and the language server. | ||
MarkdownDescription: "PIF data source", | ||
|
||
MarkdownDescription: "Provides information about a physical network interface (PIF) of XenServer", | ||
Attributes: map[string]schema.Attribute{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is another key "management = true" in main.tf, but I didn't find in schema.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in line 47 and line 196
Could you also update the pif_data_source_test.go base on your changes, include the new fields. |
Sorry, I have no idea to add test for the new option |
110f9b5
to
70c01ee
Compare
70c01ee
to
76c720f
Compare
Signed-off-by: Fei Su <[email protected]>
645de26
to
30c49c2
Compare
- `capabilities` (List of String) Additional capabilities on the interface. | ||
- `currently_attached` (Boolean) True if this interface is online | ||
- `device` (String) The machine-readable name of the physical interface (PIF) (e.g. eth0) | ||
- `disallow_unplug` (Boolean) Prevent this PIF from being unplugged; set this to notify the management tool-stack that the PIF has a special use and should not be unplugged under any circumstances (e.g. because you're running storage traffic over it) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see MD documents not exceeding 80 characters in line length such that reviews, diffs, and reading them in a terminal is supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a generated doc from Go, and it can't be broken up into multiple lines, but we can try to make it shorter.