slxos_netdev_interface { "name": admin => [up | down], mtu => mtu_value, speed => “speed_value”, duplex => $target target => $target }
Property | Description |
---|---|
name (required) | Specifies the name of the physical interface. |
admin (optional) | Configures the interface as administratively enabled or disabled. By default, it is up. |
mtu_value (optional) | Configures the interface maximum transmission unit (MTU) value. |
speed_value (optional) | Configures the interface speed. Possible values are auto, 10m, 100m, 1g, and 10g.The default is auto. |
duplex | Configures duplex mode: auto, full, or half. By default, it is set to auto. |
target (optional) | Specifies device connection information. For example, http://admin:password@[3001::1]:830 NOTE: The target can also be specified by using a shortcut. An example is: $ip23= "http://admin:password@10.12.13.14:830; you can then use $ip23 subsequently. |
The following Puppet code segment configures several properties for the Ethernet interface.
class node1 { $ip23= "http://admin:password@10.12.13.14:830" slxos_netdev_interface { “eth-1/1": ensure => present, admin => up, description => "this is a storage port", mtu => 2200, speed => "10000", target => $ip23 }
Use the show running interface command to verify the results of the code segment on the switch.
device# sh run interface ethenet 1/1 interface ethernet 1/1 speed 10000 mtu 2200 description this is a storage port no shutdown !