Skip to content

Commit 8fc542a

Browse files
committed
Update yang examples
1 parent e70c14c commit 8fc542a

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/data-sources/yang.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This data source can retrieve one or more attributes via YANG paths.
1414

1515
```terraform
1616
data "iosxe_yang" "example" {
17-
path = "Cisco-IOS-XE-native:native/banner/login"
17+
path = "/Cisco-IOS-XE-native:native/banner/login"
1818
}
1919
```
2020

docs/resources/yang.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Manages IOS-XE objects via YANG paths. This resource can only manage a single ob
1414

1515
```terraform
1616
resource "iosxe_yang" "simple" {
17-
path = "Cisco-IOS-XE-native:native/banner/login"
17+
path = "/Cisco-IOS-XE-native:native/banner/login"
1818
attributes = {
1919
banner = "My Banner"
2020
}
2121
}
2222
2323
resource "iosxe_yang" "nested_list" {
24-
path = "Cisco-IOS-XE-native:native/ip"
24+
path = "/Cisco-IOS-XE-native:native/ip"
2525
attributes = {
2626
source-route = "true"
2727
}
@@ -75,5 +75,5 @@ Import is supported using the following syntax:
7575
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
7676

7777
```shell
78-
terraform import iosxe_yang.example "Cisco-IOS-XE-native:native/banner/login"
78+
terraform import iosxe_yang.example "/Cisco-IOS-XE-native:native/banner/login"
7979
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
data "iosxe_yang" "example" {
2-
path = "Cisco-IOS-XE-native:native/banner/login"
2+
path = "/Cisco-IOS-XE-native:native/banner/login"
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
terraform import iosxe_yang.example "Cisco-IOS-XE-native:native/banner/login"
1+
terraform import iosxe_yang.example "/Cisco-IOS-XE-native:native/banner/login"

examples/resources/iosxe_yang/resource.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
resource "iosxe_yang" "simple" {
2-
path = "Cisco-IOS-XE-native:native/banner/login"
2+
path = "/Cisco-IOS-XE-native:native/banner/login"
33
attributes = {
44
banner = "My Banner"
55
}
66
}
77

88
resource "iosxe_yang" "nested_list" {
9-
path = "Cisco-IOS-XE-native:native/ip"
9+
path = "/Cisco-IOS-XE-native:native/ip"
1010
attributes = {
1111
source-route = "true"
1212
}

0 commit comments

Comments
 (0)