From 5765dc9096cf889e5586b12027e563c23d2e9bc2 Mon Sep 17 00:00:00 2001 From: Teresa Ho Date: Mon, 27 May 2019 11:33:39 -0400 Subject: [PATCH] Clean up interface network assignment The networktype field is no longer used in the interface table since an interface can have multiple networks associated with it. This commit is to remove the networktype field and use the network association instead. The host interface commands used to allow associating an initial network to the interface. This has been changed such that network association can only be done with the interface-network commands. The address assignment of an interface is performed when a network is assigned to an interface, not when the interface is provisioned. Data interface no longer requires at least one datanetwork associated with it. The REST API doc is also updated to reflect the changes. Story: 2004273 Task: 30947 Task: 33504 Change-Id: I952008408826f4c630246477d71687628357622c Signed-off-by: Teresa Ho --- .../roles/bringup-essential-services/tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playbookconfig/playbookconfig/playbooks/bootstrap/roles/bringup-essential-services/tasks/main.yml b/playbookconfig/playbookconfig/playbooks/bootstrap/roles/bringup-essential-services/tasks/main.yml index de31518ad..2809b8a90 100644 --- a/playbookconfig/playbookconfig/playbooks/bootstrap/roles/bringup-essential-services/tasks/main.yml +++ b/playbookconfig/playbookconfig/playbooks/bootstrap/roles/bringup-essential-services/tasks/main.yml @@ -14,8 +14,9 @@ # Use shell instead of command module as source is an internal shell command shell: "{{ item }}" with_items: - - source /etc/platform/openrc; system host-if-add controller-0 lo virtual none lo -c platform --networks mgmt -m 1500 - - source /etc/platform/openrc; system host-if-modify controller-0 -c platform --networks cluster-host lo + - source /etc/platform/openrc; system host-if-add controller-0 lo virtual none lo -c platform -m 1500 + - source /etc/platform/openrc; system interface-network-assign controller-0 lo mgmt + - source /etc/platform/openrc; system interface-network-assign controller-0 lo cluster-host - ip addr add {{ cluster_virtual }} brd {{ cluster_broadcast }} dev lo scope host label lo:5 - ip addr add {{ mgmt_virtual }} brd {{ management_broadcast }} dev lo scope host label lo:1 - ip addr add {{ pxe_virtual }} dev lo scope host