JNPRAutomate / ansible-junos-evpn-vxlan

Sample project that use Ansible and Jinja2 template to automatically generate configurations for Juniper devices deploy in EVPN/VXLAN fabric mode
MIT License
91 stars 64 forks source link

fixed commit error because of chaning vlans #44

Closed elcool0r closed 7 years ago

elcool0r commented 7 years ago

chaning a vlan from an access interface from for example 101 to 102 caused this: bad_element: members 101-102, message: error: Vlan range format not supported if interface-mode is access

chanhing the action between overwrite & replace didnt help. also the new junos_config module didnt fix it.

elcool0r commented 7 years ago

please correct me if I'm wrong or if i didn't think this through :)

dgarros commented 7 years ago

Hi

Currently the expectation is that configuration will be deploy using overwrite, the new configuration will completely delete the previous one.

I think there is a bug with the current module junos_config regarding overwrite that is not working. As a workaround, you can use junos_install_config

Damien

elcool0r commented 7 years ago

right now we are using junos_template as junos_config has the state "preview". the provided pb.conf.all.commit.galaxy.yaml doesnt seem to work for me but i'll look into it. also this bug affects pb.conf.all.commit.yaml so I do think it isnt't just for me :)

dgarros commented 7 years ago

pb.conf.all.commit.galaxy.yaml doesnt seem to work for me

That is surprising, let me know if you need help to make to work

elcool0r commented 7 years ago

I've just noticed that overwrite doenst seem to work at all for me. for example removing force-up from a lacp interface isnt working. ansible 2.2.0.0

dgarros commented 7 years ago

I've just noticed that overwrite doenst seem to work at all for me.

With which module ? I would recommend junos_install_config for now

dgarros commented 7 years ago

Closing for now