Skip to content

Commit

Permalink
add node/relationship type protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Nov 4, 2023
1 parent 53fe099 commit f46b995
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apstra/query_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const (
NodeTypeLogicalDevice
NodeTypeMetadata
NodeTypePolicy
NodeTypeProtocol
NodeTypeRack
NodeTypeRedundancyGroup
NodeTypeRouteTargetPolicy
Expand All @@ -34,6 +35,7 @@ const (
nodeTypeLogicalDevice = nodeType("logical_device")
nodeTypeMetadata = nodeType("metadata")
nodeTypePolicy = nodeType("policy")
nodeTypeProtocol = nodeType("protocol")
nodeTypeRack = nodeType("rack")
nodeTypeRedundancyGroup = nodeType("redundancy_group")
nodeTypeRouteTargetPolicy = nodeType("route_target_policy")
Expand Down Expand Up @@ -71,6 +73,8 @@ func (o NodeType) String() string {
return string(nodeTypeMetadata)
case NodeTypePolicy:
return string(nodeTypePolicy)
case NodeTypeProtocol:
return string(nodeTypeProtocol)
case NodeTypeRack:
return string(nodeTypeRack)
case NodeTypeRedundancyGroup:
Expand Down
4 changes: 4 additions & 0 deletions apstra/query_relationship.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const (
RelationshipTypeMemberVNs
RelationshipTypePartOfRack
RelationshipTypePolicy
RelationshipTypeProtocol
RelationshipTypeRouteTargetPolicy
RelationshipTypeTag
RelationshipTypeUnknown = "unknown node type %s"
Expand All @@ -45,6 +46,7 @@ const (
relationshipTypeMemberVNs = relationshipType("member_vns")
relationshipTypePartOfRack = relationshipType("part_of_rack")
relationshipTypePolicy = relationshipType("policy")
relationshipTypeProtocol = relationshipType("protocol")
relationshipTypeRouteTargetPolicy = relationshipType("route_target_policy")
relationshipTypeTag = relationshipType("tag")
relationshipTypeUnknown = "unknown node type %d"
Expand Down Expand Up @@ -93,6 +95,8 @@ func (o RelationshipType) String() string {
return string(relationshipTypePartOfRack)
case RelationshipTypePolicy:
return string(relationshipTypePolicy)
case RelationshipTypeProtocol:
return string(relationshipTypeProtocol)
case RelationshipTypeRouteTargetPolicy:
return string(relationshipTypeRouteTargetPolicy)
case RelationshipTypeTag:
Expand Down

0 comments on commit f46b995

Please sign in to comment.