osm package-build hackfest_magma-agw-enb_nsd
osm package-build hackfest_magma-agw-enb_vnfd
osm package-build hackfest_gateway_vnfd
osm package-build fb_magma_knf
osm package-build fb_magma_ns

osm nst-delete magma_slice_hackfest_nst
osm nsd-delete hackfest_magma-agw-enb_nsd
osm nsd-delete fb_magma_ns
osm vnfd-delete hackfest_magma-agw-enb_vnfd
osm vnfd-delete hackfest_gateway_vnfd
osm vnfd-delete fb_magma_knf

osm upload-package hackfest_magma-agw-enb_vnfd/hackfest_magma-agw-enb_vnfd.tar.gz
osm upload-package hackfest_gateway_vnfd/hackfest_gateway_vnfd.tar.gz
osm upload-package fb_magma_knf/fb_magma_knf.tar.gz
osm upload-package fb_magma_ns/fb_magma_ns.tar.gz
osm upload-package hackfest_magma-agw-enb_nsd/hackfest_magma-agw-enb_nsd.tar.gz

osm netslice-template-create magma_slice.yaml

osm nsi-create --nsi_name magma_slice --nst_name magma_slice_hackfest_nst \
--config_file params.yaml --ssh_keys ~/.ssh/id_rsa.pub --vim_account etsi-openstack

sleep 4
osm ns-list | grep "\<slice_hackfest_nsd_epc\>" | awk '{print $4}' | xargs -l1 juju switch
juju model-config enable-os-refresh-update=false enable-os-upgrade=false
juju model-config apt-mirror=http://fr.archive.ubuntu.com/ubuntu/
