Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add strict_update flag to update using "status" : "replaced" #252

Merged
merged 3 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gen/definitions/ipv4_access_list_entry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ doc_path: Security%20and%20Policing/ipv4acl:ACE/
doc_category: IPv4
parents:
- IPv4 Access List
strict_update: true
attributes:
- nxos_name: name
tf_name: name
Expand Down
1 change: 1 addition & 0 deletions gen/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ type YamlConfig struct {
ClassName string `yaml:"class_name"`
Dn string `yaml:"dn"`
NoDelete bool `yaml:"no_delete"`
StrictUpdate bool `yaml:"strict_update"`
TestTags []string `yaml:"test_tags"`
DsDescription string `yaml:"ds_description"`
ResDescription string `yaml:"res_description"`
Expand Down
1 change: 1 addition & 0 deletions gen/schema/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ doc_category: str()
parents: list(str(), required=False)
children: list(str(), required=False)
references: list(str(), required=False)
strict_update: bool(required=False)
attributes: list(include('attribute'), required=False)
child_classes: list(include('child_classes'), required=False)
test_prerequisites: list(include('test_prerequisite'), required=False)
Expand Down
5 changes: 4 additions & 1 deletion gen/templates/model.go

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

8 changes: 6 additions & 2 deletions gen/templates/resource.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_address_family.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_advertised_prefix.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_graceful_restart.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_instance.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_peer.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_peer_address_family.go

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

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

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_peer_local_asn.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_peer_template.go

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

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_peer_template_max_prefix.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_route_control.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_route_redistribution.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bgp_vrf.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_bridge_domain.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_default_qos_class_map.go

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_default_qos_class_map_dscp.go

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

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

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

5 changes: 4 additions & 1 deletion internal/provider/model_nxos_default_qos_policy_map.go

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

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

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

Loading