Forum Discussion
Zdenek
Dec 16, 2023Cirrostratus
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...
- 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
Zdenek
Jan 15, 2024Cirrostratus
Ou yeah, I did - 00539815. Is anyone else struggling with this? Nobody creates a vlan via API in F5OS? Nobody trying to attach vlan to trunk, oh sorry, now it's LAG 🙂 Nobody wondering how to remove the vlan? I am surprised there are not more threads on this topic...
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects