Stacking

Configures, modifies, and retrieves stacking configuration. The URI for stacking is:

/stack            

Supported HTTP Operations

GET method

URL: https://10.176.157.150/restconf/data/stack
Request body: None
Response body:     
{
   "icx-openconfig-stack:stack" : {
      "config" : {
         "zero-touch-enable" : true,
         "stack-units" : {
            "stack-unit" : [
               {
                  "unit-id" : 1,
                  "config" : {
                     "priority" : 2,
                     "unit-id" : 1,
                     "unit-name" : "test2"
                  }
               }
            ]
         },
         "suggested-id" : 5,
         "mac-address" : "d4c1.9e16.a541",
         "ztp-force" : false,
         "enabled" : true
      },
      "state" : {
         "zero-touch-enable" : true,
         "stack-units" : {
            "stack-unit" : [
               {
                  "state" : {
                     "priority" : 2,
                     "mac-address" : "d4c1.9e16.a541",
                     "unit-type" : "ICX7850-32Q",
                     "unit-name" : "test2",
                     "state" : "local",
                     "stack-ports" : {},
                     "dynamic-static" : "Static",
                     "comment" : "None:0",
                     "unit-id" : 1,
                     "role" : "alone",
                     "trunks" : {}
                  },
                  "icx-openconfig-stack:unit-id" : 1
               }
            ]
         },
         "suggested-id" : 5,
         "mac-address" : "d4c1.9e16.a541",
         "ztp-force" : false,
         "enabled" : true
      }
   }
}

PATCH or PUT method

URL: https://10.176.157.150/restconf/data/stack
Request body:
 {"icx-openconfig-stack:stack":{"config":{"zero-touch-enable":true}}}
Response body: None    

PATCH or PUT method

URL: https://10.176.157.150/restconf/data/stack
Request body:
{"icx-openconfig-stack:stack":{"config":{"suggested-id":10}}}
Response body: None    

PATCH or PUT method

URL: https://10.176.157.150/restconf/data/stack
Request body: 
   {
   "icx-openconfig-stack:stack":{
      "config":{
         "enabled":true,
         "suggested-id":5,
         "zero-touch-enable":true,
         "ztp-force":true,
         "stack-units":{
            "stack-unit":[
               {
                  "unit-id":1,
                  "config":{
                     "unit-id":1,
                     "priority":2,
                     "unit-name":"test2"
                  }
               }
            ]
         }
      }
   }
}
Response body:
Configures both priority and unit-name of unit '1'.

GET:

{
   "icx-openconfig-stack:stack" : {
      "config" : {
         "zero-touch-enable" : true,
         "stack-units" : {
            "stack-unit" : [
               {
                  "unit-id" : 1,
                  "config" : {
                     "priority" : 2,
                     "unit-id" : 1,
                     "unit-name" : "test2"
                  }
               }
            ]
         },
         "suggested-id" : 5,
         "mac-address" : "d4c1.9e16.a541",
         "ztp-force" : true,
         "enabled" : true
      },
      "state" : {
         "zero-touch-enable" : true,
         "stack-units" : {
            "stack-unit" : [
               {                 

                  "state" : {
                     "priority" : 2,
                     "mac-address" : "d4c1.9e16.a541",
                     "unit-type" : "ICX7850-32Q",
                     "unit-name" : "test2",
                     "state" : "local",
                     "stack-ports" : {},
                     "dynamic-static" : "Static",
                     "comment" : "None:0",
                     "unit-id" : 1,
                     "role" : "alone",
                     "trunks" : {}
                  },
                  "icx-openconfig-stack:unit-id" : 1
               }
            ]
         },
         "suggested-id" : 5,
         "mac-address" : "d4c1.9e16.a541",
         "ztp-force" : true,
         "enabled" : true
      }
   }
}