Как установить vrf и исходный интерфейс ios_logging ansible - PullRequest
0 голосов
/ 19 октября 2018

Чтобы настроить переключатель, как показано ниже, из ansible, как мы можем написать playbook для последних 4 строк этих файлов конфигурации?Любые комментарии и предложения приветствуются.

...
logging trap informational
logging console informational
logging vrf MGMT host 10.2.5.7
logging host 10.5.3.7 5454
Logging vrf MGMT source-interface Management1
Logging source-interface Loopback0

В ответе:

- name: config trap logging and level
  ios_logging:
    dest: trap   # Is it available?
    level: informational
    state: present

- name: config console logging and level
  ios_logging:
    dest: console
    level: informational
    state: present

- name: config vrf and host # not enough documentation I could find
  ios_logging:
    dest:    # how to get the vrf VRF or is it host?
    name: 10.2.5.7 # only if the dest. is host
    state: present

- name: config host and name
  ios_logging:
    dest: host
    name: '10.5.3.7 5454'
    state: present

- name: config vrf and source-interface # not enough documentation I could find
  ios_logging:
    dest:    # how to get the vrf VRF or is it host?
    name: ?    # source-interface part
    state: present

- name: config source-interface # same issue
  ios_logging:
    dest: source-interface    # is this a way?
    name: Loopback0    # someone tell me this is a way
    state: present
...