Description

When a new virtual network is created and bound to an MC-LAG pair, the MC-LAG port (port channel over peer) will have all the defined VLANs in the incremental changes.

If CT for a virtual network is assigned to user ports, the user ports will have incremental changes (e.g., newly added VLANs only). 


Notes:

In RESTCONF, PATCH applies only partial modifications to specific fields. Fields omitted from the request body remain unchanged. 



Solution

 

Incremental Config Preview (example)

 

-----RESTCONF-----

{

  "config_gen_mode": "incremental",

  "data": {

    "openconfig-interfaces:interfaces": {

      "interface": [

        {

          "config": {

            "name": "Vlan888"

          },

          "name": "Vlan888"

        }

      ]

    }

  },

  "expect": 204,

  "method": "PATCH",

  "url": "/data/openconfig-interfaces:interfaces"

}

{

  "config_gen_mode": "incremental",

  "data": {

    "openconfig-interfaces:config": {

      "mtu": 9100,

      "name": "Vlan888"

    }

  },

  "expect": 204,

  "method": "PATCH",

  "url": "/data/openconfig-interfaces:interfaces/interface=Vlan888/config"

}

{

  "config_gen_mode": "incremental",

  "data": {

    "openconfig-vlan:config": {

      "interface-mode": "TRUNK",

      "trunk-vlans": [

        2,

        3,

        4,

        5,

        6,

        7,

    ..snip..

        777,

        888, <<<

        999,

    ..snip..

      ]

    }

  },

  "expect": 204,

  "method": "PATCH",

  "url": "/data/openconfig-interfaces:interfaces/interface=PortChannel1/openconfig-if-aggregate:aggregation/openconfig-vlan:switched-vlan/config"

}

Modification History

2026-03-13 : Article Created