Skip to content
Snippets Groups Projects
Commit 5d4dc5f4 authored by Rafael Da Silveira Santos's avatar Rafael Da Silveira Santos
Browse files

Adding infrahub base schame

parent 0756b959
No related branches found
No related tags found
No related merge requests found
server_address="http://localhost:8000"
api_token="183c8d2b-78d4-6c9d-3a03-c51d1ea41038"
\ No newline at end of file
import logging
from infrahub_sdk import InfrahubClient
from infrahub_sdk import Config, InfrahubClient
token = "183c8d2b-78d4-6c9d-3a03-c51d1ea41038"
url="http://localhost:8000"
client = InfrahubClient(address=url, config=Config(api_token=token))
async def populate_infrahub(client: InfrahubClient, log: logging.Logger, branch: str) -> None:
...
......
---
# ToDo
\ No newline at end of file
version: "1.0"
nodes:
- name: Spine
namespace: Router
icon: "mdi:router"
attributes:
- name: name
kind: Text
unique: true
- name: mgmt_ip
kind: IPHost
- name: router_os
kind: Text
- name: Leaf
namespace: Router
icon: "mdi:router"
attributes:
- name: name
kind: Text
unique: true
- name: mgmt_ip
kind: IPHost
- name: router_os
kind: Text
- name: Host
namespace: Host
icon: "mdi:server"
attributes:
- name: name
kind: Text
unique: true
- name: mgmt_ip
kind: IPHost
- name: connected_interface
kind: Text
relationships:
- name: connected_to
peer: RouterLeaf
optional: false
cardinality: one
kind: Attribute
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment