python nx-api生成树vlan优先级

python nx-api spanning tree vlan priority

我正在尝试通过 API 配置生成树优先级。 不幸的是它没有用,我不知道我的 URL 或 JSON 是否有误。

URL = f"https://{ip}/api/mo/sys/stp/inst/vlan-1234.json"

jsonData = {
    "stpVlan": {
        "attributes": {
            "adminSt": "4"
        }
    }
}

主要问题出在VPC上! 由于 vpc,必须将配置导入到两个设备中。

URL = f"https://{ip}/api/mo/sys/stp/inst/vlan-1234.json

jsonData = {
    "stpVlan": {
        "attributes": {
             "priority": "16384"
        }
    }
}