summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2018-12-20 16:22:06 -0500
committerDan Radez <dradez@redhat.com>2018-12-20 16:22:06 -0500
commit8e6183fffffab0c433aa654f523ee54dc2d93fed (patch)
tree220c8a0c4200874f8dafb2962d15c68b0ba2be9e
parentc50b68b5949113af9b740618619440f03eaef28a (diff)
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
Notes
Notes (review): Code-Review+2: Dan Radez <dradez@redhat.com> Workflow+1: Dan Radez <dradez@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 21 Dec 2018 19:49:13 +0000 Reviewed-on: https://review.openstack.org/626751 Project: openstack/networking-ansible Branch: refs/heads/master
-rw-r--r--etc/ansible/roles/openstack-ml2/providers/junos/update_access_port.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/ansible/roles/openstack-ml2/providers/junos/update_access_port.yaml b/etc/ansible/roles/openstack-ml2/providers/junos/update_access_port.yaml
index f99f464..16d3cf0 100644
--- a/etc/ansible/roles/openstack-ml2/providers/junos/update_access_port.yaml
+++ b/etc/ansible/roles/openstack-ml2/providers/junos/update_access_port.yaml
@@ -3,6 +3,7 @@
3 junos_command: 3 junos_command:
4 commands: 4 commands:
5 - config 5 - config
6 - "delete interfaces {{ ml2_port_name }}"
6 - "set interfaces {{ ml2_port_name }} unit 0 family ethernet-switching interface-mode access" 7 - "set interfaces {{ ml2_port_name }} unit 0 family ethernet-switching interface-mode access"
7 - "set interfaces {{ ml2_port_name }} unit 0 family ethernet-switching vlan members {{ ml2_segmentation_id }}" 8 - "set interfaces {{ ml2_port_name }} unit 0 family ethernet-switching vlan members {{ ml2_segmentation_id }}"
8 - commit 9 - commit