Configuring Port Breakouts

Configuring Port Breakouts using the FlexSwitch CLI

For more information about how to use the CLI, see Accessing the Command Line.

4x10 Breakout

Set the Breakout Mode

In the example below we:

  • set the breakout mode on fpPort 17 to 4x10
  • apply the configuration.
localhost-57(config)#interface fpPort 17
localhost-57(config-if-eth-17)#BreakOutMode 4x10
localhost-57(config-if-eth-17)#apply

Applying Config:
id: 6   object: Port   status: APPLIED CONFIG  valid: True delete: False num user cmds: 2
 command                attr            value    model attr      iskey    required    userprov    time provisioned         
---------------------------------------------------------------------------------------------------------------------------
 interface fpPort 17    fpPort          17       IntfRef         True     X           X           Tue Jun 20 17:57:47 2017
 BreakOutMode 4x10      BreakOutMode    4x10     BreakOutMode    False    X           X           Tue Jun 20 17:57:58 2017

Set the Admin State

In the example below we set the admin state to UP on sub-interface 1 of fpPort 17 by envoking the no shut context in the CLI.

localhost-57(config)#
localhost-57(config)#interface fpPort 17s1
localhost-57(config-if-eth-17s1)#no shut
localhost-57(config-if-eth-17s1)#apply

Applying Config:
id: 20  object: Port   status: APPLIED CONFIG  valid: True delete: False num user cmds: 2
 command                  attr        value    model attr    iskey    required    userprov    time provisioned         
-----------------------------------------------------------------------------------------------------------------------
 interface fpPort 17s1    fpPort      17s1     IntfRef       True     X           X           Tue Jun 20 17:58:43 2017
 no shutdown UP           shutdown    UP       AdminState    False                X           Tue Jun 20 17:58:46 2017

Configuring Port Breakouts using the FlexSwitch REST Interface

Set the Port Admin State

In the example below we set the Admin State to UP on fpPort17.

curl -k -u root -X PATCH --header '"Content-Type:' 'application/json"' -d '{"IntfRef":"fpPort17", "AdminState":"UP"}' https://192.168.100.83:443/public/v1/config/Port | python -m json.tool
Enter host password for user 'root':

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: application

100   324  100   284  100    40  15162   2135 --:--:-- --:--:-- --:--:-- 15162
{
    "Access-Control-Allow-Headers": "Origin, X-Requested-With, Content-Type, Accept",
    "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PATCH, DELETE",
    "Access-Control-Allow-Origin": "*",
    "Access-Control-Max_age": "86400",
    "ObjectId": "c2451a75-664b-4491-5616-15a00582c195",
    "Result": "Success"
}

Setting the Breakout Mode

In the example below we set the breakout mode to 4x10.

curl -k -u root -X PATCH --header '"Content-Type:' 'application/json"' -d '{"IntfRef":"fpPort17", "AdminState":"UP", "BreakOutMode":"4x10"}' https://192.168.100.83:443/public/v1/config/Port | python -m json.tool
Enter host password for user 'root':

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: application

100   347  100   284  100    63   2103    466 --:--:-- --:--:-- --:--:--  2103
{
    "Access-Control-Allow-Headers": "Origin, X-Requested-With, Content-Type, Accept",
    "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PATCH, DELETE",
    "Access-Control-Allow-Origin": "*",
    "Access-Control-Max_age": "86400",
    "ObjectId": "c2451a75-664b-4491-5616-15a00582c195",
    "Result": "Success"
}

Setting the Admin State of the Sub-Interface

In the example below we set the admin state to UP on the sub-interface fpPort17s1 with a speed of 10000.

curl -k -u root -X PATCH --header '"Content-Type:' 'application/json"' -d '{"IntfRef":"fpPort17s1", "speed":10000, "AdminState":"UP", "Autoneg":"OFF"}' https://192.168.100.83:443/public/v1/config/Port | python -m json.tool
 Enter host password for user 'root':


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: application

100   358  100   284  100    74  18412   4797 --:--:-- --:--:-- --:--:-- 18412
{
    "Access-Control-Allow-Headers": "Origin, X-Requested-With, Content-Type, Accept",
    "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PATCH, DELETE",
    "Access-Control-Allow-Origin": "*",
    "Access-Control-Max_age": "86400",
    "ObjectId": "c0ec1012-ab2c-4e3a-76a1-346ef308ec79",
    "Result": "Success"
}