You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ODL Oxygen版本REST API YangUI无法查看opendaylight-inventory配置特性咨询

Troubleshooting: Can't See Config Features for opendaylight-inventory in ODL Oxygen YangUI

Hey there, let's break down why you're only seeing operational features for opendaylight-inventory in YangUI and how to resolve this:

First, a quick context check: opendaylight-inventory is designed primarily for operational data collection (like discovering network nodes/ports from devices), so its config datastore footprint is tiny by default. But if you're seeing zero config-related features at all, here's what to look into:

  • You're viewing the wrong datastore in YangUI
    YangUI often defaults to showing the operational datastore, where inventory's core data lives. To access config features, look for a dropdown or toggle in the YangUI interface (usually near the top of the page or path selector) and switch to the config datastore. This should reveal any config-specific nodes the inventory module exposes.

  • Missing the config-focused inventory feature pack
    In ODL Oxygen, the config capabilities for opendaylight-inventory are sometimes packaged as a separate feature. Log into your Karaf console and run this to check what's installed:

    feature:list | grep inventory
    

    If you don't see odl-inventory-config in the enabled features, install it with:

    feature:install odl-inventory-config
    

    Refresh YangUI after installation, and you should see config-related options.

  • The inventory config model has no existing data to display
    Even with the right features installed, the inventory config datastore is empty by default—it's meant for manual static node configurations, not auto-discovered devices. To test if config features are working, try adding a static node via YangUI:

    1. Switch to the config datastore
    2. Navigate to the /opendaylight-inventory:nodes path
    3. Send a POST request with this sample payload:
      {
        "nodes": {
          "node": [
            {
              "id": "static-test-node",
              "connected": true
            }
          ]
        }
      }
      

    After submitting, you'll see the config node appear, confirming the config features are active.

  • User permissions are blocking config datastore access
    If your YangUI user doesn't have permissions to read/write to the config datastore, those features will be hidden. Check your ODL ACL configuration (located in etc/org.opendaylight.controller.acl.cfg) and ensure your user role has access to the config datastore—for testing, you can grant full permissions to the admin role if needed.

内容的提问来源于stack exchange,提问作者Juan Andrés Martinez

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 09:26:35