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

support for 'use-vrf' within 'name_servers' in cisco.nxos.nxos_system module #776

Open
riversdev0 opened this issue Nov 2, 2023 · 0 comments
Assignees
Labels
feature This issue/PR relates to a feature request.

Comments

@riversdev0
Copy link

riversdev0 commented Nov 2, 2023

SUMMARY

In Cisco NX-OS, name-servers are configured per VRF. Additionally, name-servers in one VRF can be configured to query from a different source VRF. The current nxos_system module supports configuring name-servers in any desired VRF, but it does not support configuring the use-vrf NX-OS keyword which sources the query from a different VRF.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

nxos_system

ADDITIONAL INFORMATION

Here are some examples of what currently exists:

- name: configure name servers in the default VRF
  cisco.nxos.nxos_system:
    name_servers:
    - 8.8.8.8

will yield this NX-OS config

ip name-server 8.8.8.8

and

- name: configure name servers for a VRF
  cisco.nxos.nxos_system:
    name_servers:
    - {server: 8.8.8.8, vrf: management}

will yield this NX-OS config

vrf context management
  ip name-server 8.8.8.8

But there doesn't seem to be any YAML that will yield this

ip name-server 8.8.8.8 use-vrf management

Therefore, i propose that a new dictionary key be created, use_vrf. The config above could be produced in this way

- name: configure name servers with VRF support
  cisco.nxos.nxos_system:
    name_servers:
    - {server: 8.8.8.8, use_vrf: management}

So that you could even do something like this

- name: configure name servers with VRF support
  cisco.nxos.nxos_system:
    name_servers:
    - {server: 8.8.8.8, vrf: red, use_vrf: blue}

which would yield

vrf context red
  ip name-server 8.8.8.8 use-vrf blue
@riversdev0 riversdev0 changed the title cisco.nxos.nxos_system module support for 'use-vrf' within 'name_servers' support for 'use-vrf' within 'name_servers' in cisco.nxos.nxos_system module Nov 2, 2023
@NilashishC NilashishC added the feature This issue/PR relates to a feature request. label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request.
Projects
None yet
Development

No branches or pull requests

3 participants