From f46b995a166018cd8cadcf5194139e0888fb2800 Mon Sep 17 00:00:00 2001 From: Chris Marget Date: Fri, 3 Nov 2023 20:26:45 -0400 Subject: [PATCH] add node/relationship type `protocol` --- apstra/query_node.go | 4 ++++ apstra/query_relationship.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/apstra/query_node.go b/apstra/query_node.go index 954dcf4b..e2e2b62f 100644 --- a/apstra/query_node.go +++ b/apstra/query_node.go @@ -13,6 +13,7 @@ const ( NodeTypeLogicalDevice NodeTypeMetadata NodeTypePolicy + NodeTypeProtocol NodeTypeRack NodeTypeRedundancyGroup NodeTypeRouteTargetPolicy @@ -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") @@ -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: diff --git a/apstra/query_relationship.go b/apstra/query_relationship.go index 7ec3148e..f29de216 100644 --- a/apstra/query_relationship.go +++ b/apstra/query_relationship.go @@ -22,6 +22,7 @@ const ( RelationshipTypeMemberVNs RelationshipTypePartOfRack RelationshipTypePolicy + RelationshipTypeProtocol RelationshipTypeRouteTargetPolicy RelationshipTypeTag RelationshipTypeUnknown = "unknown node type %s" @@ -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" @@ -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: