-
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
azure_rm_networkinterface: Feature/dns servers #43588
Conversation
Hi @spmp, Thank you for the pullrequest, just so you are aware we have a dedicated Working Group for azure. |
The test
|
305f892
to
2e75ec4
Compare
The test
|
The test
The test
The test
|
@@ -1,29 +1,34 @@ | |||
- name: Prepare random number | |||
set_fact: | |||
rpfx: "{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}" | |||
auth_source: auto |
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.
no need to add auth_source
resource_group: "{{ resource_group_secondary }}" | ||
name: "tn{{ rpfx }}" | ||
address_prefixes: "10.10.0.0/16" | ||
resource_group: "{{ resource_group_secondary }}" |
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.
Hi @spmp As we talked this morning, please make the test with 4 spaces
@@ -512,6 +529,16 @@ def exec_module(self, **kwargs): | |||
results.get('enable_accelerated_networking'))) | |||
changed = True | |||
|
|||
# We need to ensure that dns_servers are list like | |||
dns_servers_res = results.get('dns_settings').get('dns_servers') |
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.
Null check for dns_settings here?
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.
dns_settings
should never be null as it comes from network_client.network_interfaces.get()
Certainly can test, but we could miss breaking API changes from Azure SDK if we do this...
Just for fun: The DNS settings does not conform to published API from a setting perspective BTW. I had an interesting conversation with the Azure Architect (or an architect) about this.... turns out you cannot set anything except dns_servers
, hence only this option. Well, you can set them, they are simply ignored.
@spmp Thanks for your contribution, Could you please resolve conflicting files? |
cbb7749
to
ec6a8ac
Compare
@Fred-sun rebased |
@spmp Thanks for your contribution, Does this PR ready for review or not? |
@Fred-sun yes this is ready for review |
@spmp Thanks for your update, I will push review. Thanks! |
@yuwzho Could you help approve those change? Thanks! |
@jborean93 for a further review |
@jborean93 Could you help take a look this PR? Thanks! |
2 similar comments
@jborean93 Could you help take a look this PR? Thanks! |
@jborean93 Could you help take a look this PR? Thanks! |
@jborean93 Could you help take a look this PR? we need push this PR to next step . Thanks! |
Cheers @nitzmahone |
SUMMARY
Add
dns_servers
option toazure_rm_networkinterface
ISSUE TYPE
COMPONENT NAME
azure_rm_networkinterface
ANSIBLE VERSION