Skip to content

Commit

Permalink
Add status replace option (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgomezve authored Dec 17, 2024
1 parent 684df87 commit 30ee4f2
Show file tree
Hide file tree
Showing 267 changed files with 930 additions and 396 deletions.
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
status_replace: 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"`
StatusReplace bool `yaml:"status_replace"`
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)
status_replace: 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

0 comments on commit 30ee4f2

Please sign in to comment.