Skip to content

Commit

Permalink
Merge pull request #187 from Juniper/security-policy-updates
Browse files Browse the repository at this point in the history
Add `RelationshipTypeSecurityPolicy` iota
  • Loading branch information
chrismarget-j authored Jan 13, 2024
2 parents 56f48be + 139885b commit 57d85f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apstra/query_relationship.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const (
RelationshipTypePolicy
RelationshipTypeProtocol
RelationshipTypeRouteTargetPolicy
RelationshipTypeSecurityPolicy
RelationshipTypeTag
RelationshipTypeUnknown = "unknown node type %s"

Expand All @@ -48,6 +49,7 @@ const (
relationshipTypePolicy = relationshipType("policy")
relationshipTypeProtocol = relationshipType("protocol")
relationshipTypeRouteTargetPolicy = relationshipType("route_target_policy")
relationshipTypeSecurityPolicy = relationshipType("security_policy")
relationshipTypeTag = relationshipType("tag")
relationshipTypeUnknown = "unknown node type %d"
)
Expand Down Expand Up @@ -99,6 +101,8 @@ func (o RelationshipType) String() string {
return string(relationshipTypeProtocol)
case RelationshipTypeRouteTargetPolicy:
return string(relationshipTypeRouteTargetPolicy)
case RelationshipTypeSecurityPolicy:
return string(relationshipTypeSecurityPolicy)
case RelationshipTypeTag:
return string(relationshipTypeTag)
default:
Expand Down

0 comments on commit 57d85f8

Please sign in to comment.