This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
plugin_routing: | |
cliconf: | |
classic: | |
redirect: nokia.sros.classic | |
light: | |
redirect: nokia.sros.light | |
md: | |
redirect: nokia.sros.md | |
terminal: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import absolute_import, division, print_function | |
__metaclass__ = type | |
DOCUMENTATION = """ | |
module: sample_choices | |
short_description: Demo case insensitive choices. | |
description: | |
- Demo case insensitive choices. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% git diff package.json | |
diff --git a/package.json b/package.json | |
index 1b192b2..428b13b 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -191,6 +191,10 @@ | |
"test": "mocha --require ts-node/register './server/src/test/**/*.ts'", | |
"deploy": "vsce publish" | |
}, | |
+ "dependencies": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: junos | |
gather_facts: no | |
connection: ansible.netcommon.netconf | |
tasks: | |
- name: run show command rpc | |
junipernetworks.junos.junos_command: | |
rpcs: get-l2ckt-connection-information | |
register: result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$git diff lib/ansible/plugins/netconf/__init__.py | |
diff --git a/lib/ansible/plugins/netconf/__init__.py b/lib/ansible/plugins/netconf/__init__.py | |
index 95442e60e9..24d04c6b82 100644 | |
--- a/lib/ansible/plugins/netconf/__init__.py | |
+++ b/lib/ansible/plugins/netconf/__init__.py | |
@@ -32,8 +32,11 @@ try: | |
from ncclient.xml_ import to_xml, to_ele, NCElement | |
HAS_NCCLIENT = True | |
NCCLIENT_IMP_ERR = None | |
-except (ImportError, AttributeError) as err: # paramiko and gssapi are incompatible and raise AttributeError not ImportError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
connection: local | |
gather_facts: false | |
tasks: | |
- name: set sample xml string | |
set_fact: | |
xml_var: | | |
<a> | |
<foo>test</foo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"patternProperties": { | |
".*" : { "$ref" : "#/definitions/router" } | |
}, | |
"minProperties": 1, | |
"definitions": { | |
"router" : { | |
"type" : "object", | |
"properties": { | |
"bgp_as": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: validate bgp data data with jsonschema bgp model criteria | |
ansible.utils.validate: | |
data: "{{ hostvars }}" | |
criteria: | |
- "{{ lookup('file', './criterias/bgp_data_model_criteria.json') | from_json }}" | |
engine: ansible.utils.jsonschema | |
register: result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Configure interface with drift in admin up state | |
cisco.nxos.nxos_interfaces: | |
config: | |
- name: "{{ item['data_path'].split('.')[0] }}" | |
enabled: true | |
loop: "{{ result['errors'] }}" | |
when: "'errors' in result" |
NewerOlder