File: //proc/self/root/usr/share/netplan/netplan_cli/cli/commands/__pycache__/ip.cpython-310.pyc
o
ϐxeV � @ sz d Z ddlZddlZddlZddlZddlmZ ddlmZ ddd�d d
d�d�ZG dd
� d
ej �Z
G dd� dej �ZdS )znetplan ip command line� N)�CalledProcessError� )�utilsz#run/systemd/netif/leases/{lease_id}�ifindex)�pattern�methodz<var/lib/NetworkManager/internal-{lease_id}-{interface}.lease�
nm_connection)�networkd�NetworkManagerc s$ e Zd Z� fdd�Zdd� Z� ZS )� NetplanIpc � t � jdddd� d S )N�ipz'Retrieve IP information from the systemF��
command_id�description�leaf��super�__init__��self�� __class__� �1/usr/share/netplan/netplan_cli/cli/commands/ip.pyr * �
�zNetplanIp.__init__c C sB t � | _| jjdddd�}|j| jj| jd� | �� | �� d S )N�leases�Display IP leasesF)�help�add_help)�func�commandclass)�NetplanIpLeases�command_leases�
subparsers�
add_parser�set_defaults�run�
parse_args�run_command)r �p_ip_leasesr r r r'