CiscoDevNet/terraform-provider-iosxe

Unable to set interface speed to 10G

grotewortel opened this issue · 2 comments

The provider does not seem to support setting the network interface speeds yet.

We have a Cisco 8000V. After applying licenses (etc.), you need to set the interface speed of the "GigabitEthernet" interfaces to 10G. The interface name remains the same.

Can you please support interface speed settings?

"Hardware" speed supports 10G
Primarily meant to show that licenses are effectively applied.

router#show platform hardware throughput level
The current throughput level is 20000000 kb/s

Initial state of one interface

router#show running-config interface GigabitEthernet 4                       
Building configuration...

Current configuration : 107 bytes
!
interface GigabitEthernet4
 no ip address
 shutdown
 negotiation auto
 no mop enabled
 no mop sysid
end

router#show running-config interface GigabitEthernet 4 | format restconf-json
{
  "data": {
    "Cisco-IOS-XE-native:native": {
      "interface": {
        "GigabitEthernet": [
          {
            "name": "4",
            "shutdown": [null],
            "mop": {
              "enabled": false,
              "sysid": false
            },
            "Cisco-IOS-XE-ethernet:negotiation": {
              "auto": true
            }
          }
        ]
      }
    }
  }
}

Manual 10G configuration of the same interface

router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
router(config)#interface gigabitEthernet 4
router(config-if)#no negotiation auto        
router(config-if)#speed 10000                
router(config-if)#exit
router(config)#exit
router#show running-config interface GigabitEthernet 4                       
Building configuration...

Current configuration : 123 bytes
!
interface GigabitEthernet4
 no ip address
 shutdown
 speed 10000
 no negotiation auto
 no mop enabled
 no mop sysid
end

router#show running-config interface GigabitEthernet 4 | format restconf-json
{
  "data": {
    "Cisco-IOS-XE-native:native": {
      "interface": {
        "GigabitEthernet": [
          {
            "name": "4",
            "shutdown": [null],
            "mop": {
              "enabled": false,
              "sysid": false
            },
            "Cisco-IOS-XE-ethernet:speed": {
              "value-10000": [null]
            },
            "Cisco-IOS-XE-ethernet:negotiation": {
              "auto": false
            }
          }
        ]
      }
    }
  }
}

Added in 0.5.2 release.