Browse Source

Delete port conf on junos before conf access port

If there's previous config on a port the access configuration will fail.
Other providers delete like this. This makes Junos work like the others.

Change-Id: Ie517f7f0126000775af36aafa8ff007eaec6e0a1
changes/51/626751/1
Dan Radez 5 months ago
parent
commit
8e6183ffff

+ 1
- 0
etc/ansible/roles/openstack-ml2/providers/junos/update_access_port.yaml View File

@@ -3,6 +3,7 @@
3 3
   junos_command:
4 4
     commands:
5 5
       - config
6
+      - "delete interfaces {{ ml2_port_name }}"
6 7
       - "set interfaces {{ ml2_port_name }} unit 0 family ethernet-switching interface-mode access"
7 8
       - "set interfaces {{ ml2_port_name }} unit 0 family ethernet-switching vlan members {{ ml2_segmentation_id }}"
8 9
       - commit

Loading…
Cancel
Save