Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
netplan /
netplan_cli /
cli /
commands /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-06-23 20:32
__init__.py
1.23
KB
-rw-r--r--
2023-12-13 01:56
apply.py
21.11
KB
-rw-r--r--
2026-04-23 22:17
generate.py
3.47
KB
-rw-r--r--
2023-12-13 01:56
get.py
1.52
KB
-rw-r--r--
2023-12-13 01:56
info.py
2.4
KB
-rw-r--r--
2023-12-13 01:56
ip.py
6.08
KB
-rw-r--r--
2023-12-13 01:56
migrate.py
19.98
KB
-rw-r--r--
2026-04-23 22:17
set.py
5.57
KB
-rw-r--r--
2023-12-13 01:56
sriov_rebind.py
7.74
KB
-rw-r--r--
2026-04-23 22:17
status.py
10.55
KB
-rw-r--r--
2023-12-13 01:56
try_command.py
7.81
KB
-rw-r--r--
2023-12-13 01:56
Save
Rename
#!/usr/bin/python3 # # Copyright (C) 2019 Canonical, Ltd. # Author: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. '''netplan info command line''' from .. import utils from ... import _features class NetplanInfo(utils.NetplanCommand): def __init__(self): super().__init__(command_id='info', description='Show available features', leaf=True) def run(self): # pragma: nocover (covered in autopkgtest) format_group = self.parser.add_mutually_exclusive_group(required=False) format_group.add_argument('--json', dest='version_format', action='store_const', const='json', help='Output version and features in JSON format') format_group.add_argument('--yaml', dest='version_format', action='store_const', const='yaml', help='Output version and features in YAML format') self.func = self.command_info self.parse_args() self.run_command() def command_info(self): netplan_version = { 'netplan.io': { 'website': 'https://netplan.io/', } } flags = _features.NETPLAN_FEATURE_FLAGS netplan_version['netplan.io'].update({'features': flags}) # Default to output in YAML format. if self.version_format is None: self.version_format = 'yaml' if self.version_format == 'json': import json print(json.dumps(netplan_version, indent=2)) elif self.version_format == 'yaml': print('''netplan.io: website: "{}" features:'''.format(netplan_version['netplan.io']['website'])) for feature in _features.NETPLAN_FEATURE_FLAGS: print(' - ' + feature)