Skip to content
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

Mandatory Attributes on Pool Creation #146

Open
miesi opened this issue Oct 21, 2021 · 1 comment
Open

Mandatory Attributes on Pool Creation #146

miesi opened this issue Oct 21, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@miesi
Copy link
Contributor

miesi commented Oct 21, 2021

In the Traffic Sentinel traffic accounting project we are designing some attributes which every dim pool needs to have so our automated accounting process can determine what pool traffic belongs to which market (product) segment.

Question 1: Would it be possible to make these attributes mandatory when creating a pool so a pool creator must provide the information? If it is possible to have the attributes set as mandatory, would it be possible to make this easier for the pool creator by providing this as a command-line addition? I'm thinking something like the following as it will be easier than having to remember to use option flags to set the attributes:

ndcli create pool P [user presses enter]

Please provide the following four pool attributes:
a-company: [user presses enter]
a-country: [user presses enter]
a-origin: [user presses enter]
a-product: [user presses enter]
[normal process proceeds]

In other words, each attribute is a single line and the next line does not show up until the user presses enter. It would extend the pool creation process a bit, but would be much easier than having to remember to set these attributes through option tags.

Question 2: If it is not possible to make them mandatory, could the pool creation process add the attributes with a "dummy" value (like UNSET) so we could programmatically detect the new pools with invalid attribute settings?

The attributes every pool should have set:

a-company
a-country
a-origin
a-product

@miesi
Copy link
Contributor Author

miesi commented Oct 21, 2021

is much the same for vlan (pool) or gw (subnet) property.

@miesi miesi added the enhancement New feature or request label Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant