Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
template_vxlan_lab_Rafael
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rafael Da Silveira Santos
template_vxlan_lab_Rafael
Commits
5d4dc5f4
Commit
5d4dc5f4
authored
1 month ago
by
Rafael Da Silveira Santos
Browse files
Options
Downloads
Patches
Plain Diff
Adding infrahub base schame
parent
0756b959
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
infrahub/infrahubctl.toml
+2
-0
2 additions, 0 deletions
infrahub/infrahubctl.toml
infrahub/populate_infrahub.py
+5
-1
5 additions, 1 deletion
infrahub/populate_infrahub.py
infrahub/schema.yaml
+43
-1
43 additions, 1 deletion
infrahub/schema.yaml
with
50 additions
and
2 deletions
infrahub/infrahubctl.toml
0 → 100644
+
2
−
0
View file @
5d4dc5f4
server_address
=
"http://localhost:8000"
api_token
=
"183c8d2b-78d4-6c9d-3a03-c51d1ea41038"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
infrahub/populate_infrahub.py
+
5
−
1
View file @
5d4dc5f4
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
:
...
...
...
This diff is collapsed.
Click to expand it.
infrahub/schema.yaml
+
43
−
1
View file @
5d4dc5f4
---
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment