For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Zdenek's avatar
Zdenek
Icon for Cirrostratus rankCirrostratus
Dec 16, 2023
Solved

F5OS API - not able to create vlan

Hi all, GET request: https://10.10.10.10/api/data/openconfig-vlan:vlans Gives me JSON payload as here:     { "openconfig-vlan:vlans": { "vlan": [ { "vlan...
  • Raam's avatar
    Raam
    Feb 16, 2024

    Try the following;

    curl -k -X PATCH -H'Content-Type: application/yang-data+json' -u admin:admin "https://192.168.10.11/api/data/openconfig-interfaces:interfaces/interface" --data @- <<EOF
    {
     "interface": [
       {
        "name": "6.0",
        "openconfig-if-ethernet:ethernet": {
        "openconfig-vlan:switched-vlan": {
          "config": {
          "trunk-vlans": [940]
          }
        }
       }
      }
     ]
    }
    EOF