feat: ingest data from new agent system
This commit is contained in:
parent
e36352b7f3
commit
5b9dc7cfc6
3 changed files with 23 additions and 3 deletions
|
|
@ -15,6 +15,7 @@ interface Props {
|
|||
machine: Machine;
|
||||
routes: Route[];
|
||||
users: User[];
|
||||
isAgent?: boolean;
|
||||
magic?: string;
|
||||
stats?: HostInfo;
|
||||
}
|
||||
|
|
@ -22,8 +23,9 @@ interface Props {
|
|||
export default function MachineRow({
|
||||
machine,
|
||||
routes,
|
||||
magic,
|
||||
users,
|
||||
isAgent,
|
||||
magic,
|
||||
stats,
|
||||
}: Props) {
|
||||
const expired =
|
||||
|
|
@ -79,6 +81,10 @@ export default function MachineRow({
|
|||
tags.unshift('Subnets');
|
||||
}
|
||||
|
||||
if (isAgent) {
|
||||
tags.unshift('Headplane Agent');
|
||||
}
|
||||
|
||||
const ipOptions = useMemo(() => {
|
||||
if (magic) {
|
||||
return [...machine.ipAddresses, `${machine.givenName}.${prefix}`];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue