refactor: move transforms/ into infrahub/ and update all paths (#20)
Move transforms/{queries,templates,tests} under infrahub/transforms/ so all
Infrahub-managed content lives under the dedicated infrahub/ directory,
consistent with schemas/, objects/, and menus/.
Updated paths:
- .infrahub.yml: file_path and template_path entries now prefixed with
infrahub/transforms/
- infrahub/transforms/tests/*/test.yml: directory references updated from
transforms/tests/* to infrahub/transforms/tests/*
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
92
infrahub/transforms/queries/vlan_intent.gql
Normal file
92
infrahub/transforms/queries/vlan_intent.gql
Normal file
@@ -0,0 +1,92 @@
|
||||
query VlanIntent($device_name: String!) {
|
||||
# VLANs reachable via VTEP VLAN-VNI mappings (L2/VXLAN VLANs)
|
||||
InfraVTEP(device__name__value: $device_name) {
|
||||
edges {
|
||||
node {
|
||||
source_address {
|
||||
value
|
||||
}
|
||||
udp_port {
|
||||
value
|
||||
}
|
||||
vlan_vni_mappings {
|
||||
edges {
|
||||
node {
|
||||
vlan {
|
||||
node {
|
||||
vlan_id {
|
||||
value
|
||||
}
|
||||
name {
|
||||
value
|
||||
}
|
||||
status {
|
||||
value
|
||||
}
|
||||
vlan_type {
|
||||
value
|
||||
}
|
||||
trunk_groups {
|
||||
value
|
||||
}
|
||||
stp_enabled {
|
||||
value
|
||||
}
|
||||
vni {
|
||||
node {
|
||||
vni {
|
||||
value
|
||||
}
|
||||
vni_type {
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# VLANs reachable via SVI interfaces (MLAG, routing, and other local VLANs)
|
||||
InfraInterfaceVlan(device__name__value: $device_name) {
|
||||
edges {
|
||||
node {
|
||||
vlan {
|
||||
node {
|
||||
vlan_id {
|
||||
value
|
||||
}
|
||||
name {
|
||||
value
|
||||
}
|
||||
status {
|
||||
value
|
||||
}
|
||||
vlan_type {
|
||||
value
|
||||
}
|
||||
trunk_groups {
|
||||
value
|
||||
}
|
||||
stp_enabled {
|
||||
value
|
||||
}
|
||||
vni {
|
||||
node {
|
||||
vni {
|
||||
value
|
||||
}
|
||||
vni_type {
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user