最近几天我在玩 cisco nexus switch 来使用nxosansible 模块部署配置以使其自动化。
我正在运行n3000-uk9-kickstart.6.0.2.U6.6.bin软件,这是我尝试配置交换机端口的剧本片段。
- name: L2 config for all ports
nxos_switchport: interface={{ item }} mode=trunk trunk_vlans=10-11
with_items:
- Ethernet1/49
- Ethernet1/50
我的整个剧本毫无问题地运行干净,但我只看到以下更改,它没有配置 allowed vlans
interface Ethernet1/49
switchport mode trunk
interface Ethernet1/50
switchport mode trunk
如果这个模块不起作用那么我还有什么其他选择?有没有我可以运行和执行任意命令行的模块?