-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Support "force_subnet_association" parameter on na_ontap_interface #52691
Conversation
+label netapp |
The test
|
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.
shipit
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.
Shipit
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.
Shipit
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.
shipit
|
@angystardust this PR contains the following merge commits: Please rebase your branch to remove these commits. |
@angystardust looks like you might need to rebase, after that we should be good 👍 |
Rebase done, @thedoubl3j |
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.
shipit
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.
lgtm, shipit
The force_subnet_association did not work for me on ontap 9.5. Also if I go for the option to take an IP from the subnet list i.e. by using subnet_name the address and netmask parameters should not be required. In fact when verifying via command line, with -subnet-name the -address parameter will not be available. |
Hi @ilfox I personally developed and tested the patch on NetApp Release 9.4P2 :( |
@ilfox @angystardust Let me add an internal story to test this on Ontap 9.1 through 9.6 and see which version are having issues (for force_subnet_assoication). For subnet and address being required together, let me ask the team and get back to you. |
To be clear, at first I tried creating a lif by assigning a new IP which is not in the subnet list because if it's already in the list it will fail and since no gateway was being assigned, it looks like the force_subnet_assoication was not working. In the end the way I got it working as required was by adding the IPs when creating the subnet in the same order I would be creating the LIFs. |
Ok so I suppose the issue you're experiencing is due to the fact that you tried to assign a ip address that is outside the defined subnet...
This is the "svm_vlans" variable dictonary:
I hope I have helped you with my example :) |
…nsible#52691) * Support "force_subnet_association" parameter on na_ontap_interface * fix validate-modules issue * - Fix spurious commit
SUMMARY
This small patch adds a new parameter
force_subnet_association
to the na_ontap_interface module.In our storage provisioning workflow, we're creating a subnet with a fixed network range so we need to force the ip association of a LIF to the provisioned subnet.
ISSUE TYPE
COMPONENT NAME
na_ontap_interface.py
ADDITIONAL INFORMATION