为什么我能';t通过rest API更改cisco apic上端口的管理状态
当我试图通过rest API(aci_rest)更改Cisco APIC上端口的管理状态时,我得到以下错误: “msg”:“APIC错误170:无效访问,MO:l1PhysIf”,为什么我能';t通过rest API更改cisco apic上端口的管理状态,rest,ansible,network-programming,cisco,apic,Rest,Ansible,Network Programming,Cisco,Apic,当我试图通过rest API(aci_rest)更改Cisco APIC上端口的管理状态时,我得到以下错误: “msg”:“APIC错误170:无效访问,MO:l1PhysIf”, “地位”:-1 有人知道吗? 提前谢谢 - name: Change admin state of the port aci_rest: hostname: "{{ inventory_hostname }}" username: "{{ aci_user }}&q
“地位”:-1 有人知道吗?
提前谢谢
- name: Change admin state of the port
aci_rest:
hostname: "{{ inventory_hostname }}"
username: "{{ aci_user }}"
password: "{{ aci_password }}"
validate_certs: no
path: "/api/node/mo/topology/pod-{{ pod_id }}/node-{{ node_id }}/sys/phys-[eth{{ interface }}].json"
method: post
content:
{
"l1PhysIf": {
"attributes": {
"adminSt":"down",
}
}
}
我已经解决了这个问题。Cisco限制了“l1PhysIf”对象,并且有如下文档: l1类:物理(混凝土) 班级编号:3627 类别标签:第1层物理接口配置 加密:false-可导出:false-持久:true-可配置:false-受限于配额:禁用-抽象层:具体模型-APIC NX处理:禁用 写访问:[不可配置]
我改用了“Fabricsoospath”,它已经成功了。我不知道
aci\u rest
模块,是否以详细的方式运行任务,为您提供了更多信息。您不需要处于启用模式
?(我只记得15年前我在cisco的经历)是的,aci_rest确实以详细模式运行任务,但有趣的是,我只收到了我在原始消息中发布的消息。启用是什么意思?启用
相当于设备上的超级用户。AD适用于路由,而不是接口。