[+] implement interfaces_index
This commit is contained in:
parent
799280f074
commit
fdcd67aae6
@ -11,7 +11,7 @@ import dataclasses
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
from typing import (overload, Optional, Literal, Any,)
|
from typing import (overload, Optional, Literal, Any, Annotated,)
|
||||||
|
|
||||||
from .cli_bootstrap import PyProject
|
from .cli_bootstrap import PyProject
|
||||||
|
|
||||||
@ -102,7 +102,12 @@ class interfaces_index_t:
|
|||||||
family: str
|
family: str
|
||||||
local: str
|
local: str
|
||||||
|
|
||||||
name: str
|
name: Annotated[
|
||||||
|
str,
|
||||||
|
pydantic.Field(
|
||||||
|
alias='ifname',
|
||||||
|
)
|
||||||
|
]
|
||||||
addr_info: list[AddrInfo]
|
addr_info: list[AddrInfo]
|
||||||
|
|
||||||
def interfaces_index() -> list[interfaces_index_t.Interface]:
|
def interfaces_index() -> list[interfaces_index_t.Interface]:
|
||||||
|
BIN
releases/whl/online_fxreader_pr34-0.1.5.9+27.1-py3-none-any.whl
(Stored with Git LFS)
BIN
releases/whl/online_fxreader_pr34-0.1.5.9+27.1-py3-none-any.whl
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in New Issue
Block a user