관리-도구
편집 파일: generic_bsd.cpython-39.pyc
a �)gh1 � @ sP d dl mZmZmZ eZd dlZd dlZd dlZd dl m Z G dd� de �ZdS )� )�absolute_import�division�print_functionN)�Networkc @ s� e Zd ZdZdZd'dd�Zdd� Zdd � Zd(dd�Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� ZdS ))�GenericBsdIfconfigNetworka- This is a generic BSD subclass of Network using the ifconfig command. It defines - interfaces (a list of interface names) - interface_<name> dictionary of ipv4, ipv6, and mac address information. - all_ipv4_addresses and all_ipv6_addresses: lists of all configured addresses. ZGeneric_BSD_IfconfigNc C s� i }| j �d�}|d u r|S | j �d�}|d u r4|S | �|�\}}| �|�\}}| �|�}| �||d� | �||d� tt|�� ��|d<