This is an example of a manifest that uses all four supported netdev types.
root@ldap:/etc/puppetlabs/code/environments/production#cat manifests/site.pp
node tpvm-1, tpvm-2 {
slxos_netdev_interface { "ethernet 0/4":
ensure => present,
admin => up,
description => "Ethernet 0/4",
mtu => 1548,
target => "http://admin:password@10.11.12.14:830",
}
slxos_netdev_interface { "ethernet 0/4":
ensure => present,
admin => up,
description => "Ethernet 0/4",
mtu => 1548,
target => "http://admin:password@10.11.12.14:830",
}
slxos_netdev_interface { "ethernet 0/4":
ensure => present,
admin => up,
description => "Ethernet 0/4",
mtu => 1548,
target => "http://admin:password@10.11.12.14:830",
}
slxos_netdev_vlan { "vlan 2":
ensure => present,
vlan_id => 2,
description => "Vlan 2",
target => "http://admin:password@10.11.12.14:830",
}
slxos_netdev_vlan { "vlan 3":
ensure => present,
vlan_id => 3,
description => "Vlan 3",
target => "http://admin:password@10.11.12.14:830",
}
slxos_netdev_vlan { "vlan 4":
ensure => present,
vlan_id => 4,
description => "Vlan 4",
target => "http://admin:password@10.11.12.14:830",
}
slxos_netdev_l2_interface { "ethernet 0/4":
tagged_vlans => ["2","3"],
require => Slxos_netdev_vlan["vlan 2", "vlan 3"],
target => "http://admin:password@10.11.12.14:830",
}
slxos_netdev_lag { "10":
minimum_links => 5,
lacp => active,
type => standard,
links => ["ethernet 0/4", "ethernet 0/4"],
target => "http://admin:password@10.11.12.14:830",
}
}
root@ldap:/etc/puppetlabs/code/environments/production#