Resource Type: cisco_yang
- Defined in:
- lib/puppet/type/cisco_yang.rb
- Providers:
-
cisco
Overview
IOS-XR configuration management via YANG.
~~~puppet cisco_yang { ‘<title>’:
..attributes..
} ~~~ ‘<title>` is the title of the yang resource. Example: ~~~puppet
cisco_yang { 'blue vrf':
ensure => present,
target => '{\"Cisco-IOS-XR-infra-rsi-cfg:vrfs\": [null]}',
source => '{\"Cisco-IOS-XR-infra-rsi-cfg:vrfs\": {
\"vrf\":[
{
\"vrf-name\":\"blue\",
\"vpn-id\":{
\"vpn-oui\":875,
\"vpn-index\":3
},
\"create\":[null]
}
]
}
}',
}
~~~ ~~~puppet
cisco_yang { '{\"Cisco-IOS-XR-infra-rsi-cfg:vrfs\": [null]}':
ensure => present,
source => '{\"Cisco-IOS-XR-infra-rsi-cfg:vrfs\": {
\"vrf\":[
{
\"vrf-name\":\"red\",
\"vpn-id\":{
\"vpn-oui\":875,
\"vpn-index\":22
},
\"create\":[null]
}
]
}
}',
}
~~~ ~~~puppet
cisco_yang { '{\"Cisco-IOS-XR-infra-rsi-cfg:vrfs\": [null]}':
ensure => absent,
~~~