napalm_translate_yang ===================== Load a YANG object from a dict and translates the object to native Parameters ---------- .. raw:: html
Parameter Required Default Choices Description
data True N/A N/A dict to load into the YANG object
merge False N/A N/A When translating config, merge resulting config here
models True N/A N/A List of models to parse
profiles True N/A N/A List of profiles to use to translate the object
replace False N/A N/A When translating config, replace resulting config here
Examples -------- .. code-block:: yaml - name: "Translate config" napalm_translate_yang: data: "{{ interfaces.yang_model }}" profiles: ["eos"] models: - models.openconfig_interfaces register: config Return ------ .. raw:: html
Name Description Returned Type Sample
config Native configuration always string interface Ethernet2 no switchport ip address 192.168.0.1/24