[+] implement interfaces_index

This commit is contained in:
Siarhei Siniak 2025-04-18 16:38:36 +03:00
parent 799280f074
commit fdcd67aae6
2 changed files with 9 additions and 4 deletions

@ -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]:

Binary file not shown.