当我尝试通过 rest API (aci_rest) 更改Cisco APIC上端口的管理状态时,我收到以下错误:
“味精”:“APIC 错误 170:无效访问,MO:l1PhysIf”,
“状态”:-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",
}
}
}