1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Sat, 5 Aug 2017 02:03:01 +0200
3 Subject: [PATCH] maas: vlan DHCP enable on fabric-2
5 MaaS custom py modules does not implement vlan API support,
6 so use MaaS CLI directly to enable DHCP on vlan 0 on fabric-2.
8 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
9 Signed-off-by: Guillermo Herrero <Guillermo.Herrero@enea.com>
12 diff --git a/maas/region.sls b/maas/region.sls
13 index d3227ca..8a2243d 100644
21 +# NOTE(armband): To be implemented via _modules/maas.py later
23 + - name: "maas login {{ region.admin.username }} http://{{ region.bind.host }}/MAAS/api/2.0 - < /var/lib/maas/.maas_credentials && maas opnfv vlan update 2 0 dhcp_on=True primary_rack={{ region.maas_config.maas_name }}"
25 + - module: maas_subnets
26 + - module: maas_dhcp_snippets