Skip to content

Commit

Permalink
Set type for hardcoded values
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Jul 25, 2023
1 parent dcb0fa8 commit c5f12fd
Show file tree
Hide file tree
Showing 34 changed files with 42 additions and 4 deletions.
2 changes: 2 additions & 0 deletions gen/definitions/generic/acl_policy_definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: definitionId
doc_category: Localized Policies
attributes:
- model_name: type
type: String
value: acl
- model_name: name
tf_name: name
Expand Down Expand Up @@ -54,6 +55,7 @@ attributes:
description: Sequence name
example: Sequence 10
- model_name: sequenceType
type: String
value: acl
- model_name: baseAction
tf_name: base_action
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/app_probe_class_policy_object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: appProbe
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: definitionId
doc_category: Centralized Policies
attributes:
- model_name: type
type: String
value: appRoute
- model_name: name
tf_name: name
Expand Down Expand Up @@ -40,6 +41,7 @@ attributes:
description: Sequence name
example: Region1
- model_name: sequenceType
type: String
value: appRoute
- model_name: sequenceIpType
tf_name: ip_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: app
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/as_path_list_policy_object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: asPath
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/cflowd_policy_definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: definitionId
doc_category: Centralized Policies
attributes:
- model_name: type
type: String
value: cflowd
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/class_map_policy_object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: class
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/color_list_policy_object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: color
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: definitionId
doc_category: Centralized Policies
attributes:
- model_name: type
type: String
value: control
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: dataPrefix
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: dataipv6prefix
- model_name: name
tf_name: name
Expand Down
2 changes: 2 additions & 0 deletions gen/definitions/generic/device_acl_policy_definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: definitionId
doc_category: Localized Policies
attributes:
- model_name: type
type: String
value: deviceAccessPolicy
- model_name: name
tf_name: name
Expand Down Expand Up @@ -54,6 +55,7 @@ attributes:
description: Sequence name
example: Sequence 10
- model_name: sequenceType
type: String
value: deviceaccesspolicy
- model_name: baseAction
tf_name: base_action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: expandedCommunity
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: extCommunity
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ root_element: definition
doc_category: Centralized Policies
attributes:
- model_name: type
type: String
value: hubAndSpoke
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: prefix
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: ipv6prefix
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/localized_policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ id_attribute: policyId
doc_category: Localized Policies
attributes:
- model_name: policyType
type: String
value: feature
- model_name: policyName
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: definitionId
doc_category: Centralized Policies
attributes:
- model_name: type
type: String
value: mesh
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/mirror_policy_object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: mirror
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/policer_policy_object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: policer
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: preferredColorGroup
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/qos_map_policy_definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: definitionId
doc_category: Localized Policies
attributes:
- model_name: type
type: String
value: qosMap
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/region_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ doc_category: Policy Objects
exclude_test: true
attributes:
- model_name: type
type: String
value: region
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: definitionId
doc_category: Localized Policies
attributes:
- model_name: type
type: String
value: rewriteRule
- model_name: name
tf_name: name
Expand Down
3 changes: 3 additions & 0 deletions gen/definitions/generic/route_policy_definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: definitionId
doc_category: Localized Policies
attributes:
- model_name: type
type: String
value: vedgeRoute
- model_name: name
tf_name: name
Expand Down Expand Up @@ -53,6 +54,7 @@ attributes:
description: Sequence name
example: Sequence 10
- model_name: sequenceType
type: String
value: vedgeRoute
- model_name: baseAction
tf_name: base_action
Expand Down Expand Up @@ -245,6 +247,7 @@ attributes:
exclude_test: true
- model_name: type
data_path: [actions.0]
type: String
value: set
- model_name: parameter
data_path: [actions.0]
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/site_list_policy_object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: site
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/sla_class_policy_object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: sla
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: community
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/tloc_list_policy_object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: tloc
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: definitionId
doc_category: Centralized Policies
attributes:
- model_name: type
type: String
value: data
- model_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/definitions/generic/vpn_list_policy_object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: listId
doc_category: Policy Objects
attributes:
- model_name: type
type: String
value: vpn
- model_name: name
tf_name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ id_attribute: definitionId
doc_category: Centralized Policies
attributes:
- model_name: type
type: String
value: vpnMembershipGroup
- model_name: name
tf_name: name
Expand Down
8 changes: 4 additions & 4 deletions gen/templates/generic/model.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c5f12fd

Please sign in to comment.