Debian Codegraph @

lib/ansible/galaxy/data/network/terminal_plugins/example.py.j2

raw
1 #SPDX-License-Identifier: MIT-0
2 #
3 # (c) 2018 Red Hat Inc.
4 #
5 # This file is part of Ansible
6 #
7 # Ansible is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # Ansible is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with Ansible. If not, see <http://www.gnu.org/licenses/>.
19 #
20 from __future__ import annotations
21 from ansible.errors import AnsibleError
22
23 try:
24 from ansible.plugins.terminal import TerminalBase
25 """
26 Examples:
27 https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/terminal/iosxr.py
28 https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/terminal/junos.py
29 """
30 except ImportError:
31 raise AnsibleError("Terminal Plugin [ {{ role_name }} ]: Dependency not satisfied")
32
33
34 class TerminalModule(TerminalBase):
35 """
36 Examples:
37 https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/terminal/iosxr.py
38 https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/terminal/junos.py
39 """
40 raise AnsibleError("Terminal Plugin [ {{ role_name }} ]: Not implemented")