Forum Discussion
Zdenek
Cirrostratus
Dec 16, 2023F5OS 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 15, 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
coddigger
Employee
Feb 06, 2024Try removing the 'members' portion from the body and see if that works.
{
"openconfig-vlan:vlans": {
"vlan": [
{
"vlan-id": 405,
"config": {
"vlan-id": 405,
"name": "v405_10.10.20.0_m29"
}
}
]
}
}
Zdenek
Cirrostratus
Feb 06, 2024Tried and it works yes, but then the vlan is not attached to the interface and I can't find any way how to do it. F5 support doing own research as well, still..
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