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

[dns] Do not apply dynamic DNS configuration when MGMT interface has static IP address. #17769

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

oleksandrivantsiv
Copy link
Collaborator

Why I did it

Fix the issue detected by TestStaticMgmtPortIP::test_dynamic_dns_not_working_when_static_ip_configured test.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Query MGMT interface configuration. Do not apply dynamic DNS configuration when MGMT interface has static IP address.

How to verify it

Run tests/dns/static_dns/test_static_dns.py sonic-mgmt tests.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202311

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@dgsudharsan
Copy link
Collaborator

@ganglyu Can you please review this PR?

@qiluo-msft qiluo-msft merged commit c693e75 into sonic-net:master Jan 24, 2024
19 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jan 31, 2024
…static IP address. (sonic-net#17769)

### Why I did it
Fix the issue detected by[ TestStaticMgmtPortIP::test_dynamic_dns_not_working_when_static_ip_configured ](https://github.com/sonic-net/sonic-mgmt/blob/master/tests/dns/static_dns/test_static_dns.py#L105C9-L105C63) test.

### How I did it
Query MGMT interface configuration. Do not apply dynamic DNS configuration when MGMT interface has static IP address.

#### How to verify it
Run `tests/dns/static_dns/test_static_dns.py` sonic-mgmt tests.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #17969

mssonicbld pushed a commit that referenced this pull request Feb 1, 2024
…static IP address. (#17769)

### Why I did it
Fix the issue detected by[ TestStaticMgmtPortIP::test_dynamic_dns_not_working_when_static_ip_configured ](https://github.com/sonic-net/sonic-mgmt/blob/master/tests/dns/static_dns/test_static_dns.py#L105C9-L105C63) test.

### How I did it
Query MGMT interface configuration. Do not apply dynamic DNS configuration when MGMT interface has static IP address.

#### How to verify it
Run `tests/dns/static_dns/test_static_dns.py` sonic-mgmt tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants