How to deploy to Deploy Flex on GCE


This article describes How to Deploy Flex on GCE

Pre-requisite

Deploy a VM with Ubuntu 14.04 on GCE (By default, when a VM is created in GCE it assign /32 subnet IP on interface)

Configuration

gcloud compute images create flex-vnf-multi-ip-subnet<new_image name> --source-disk vm-ubuntu <running instance name> --source-disk-zone us-east1-b --guest-os-features MULTI_IP_SUBNET


cid:image004.png@01D460D7.1C0EBCB0


chmod a+x gcp_prep.sh

readonly KVER=4.4.0-116-generic

./gcp_prep.sh -p <versa-flexvnf-xxxxx-xxxx-xxxx-16.1R2S8.deb> -n <Director SB IP>


admin@vnf-harsh-cli(config)% show interfaces vni-0/0
unit 0 {
    family {
        inet {
            dhcp;
            dhcp-client-options {
                disable-broadcast-flag;
            }
        }
    }
}
  

set routing-instances grt routing-options static route 0.0.0.0/0 10.193.0.1<First IP of the assigned subnet> vni-0/0.0

Screenshot of Custom route entry in GCP for Flex LAN network is attached below


cid:image003.png@01D460D6.3D5D2790