diff options
author | Marco Platania <platania@research.att.com> | 2017-08-24 15:53:20 -0400 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2017-08-24 15:53:20 -0400 |
commit | 0fb5e3dba256af21c92e6f8b046b65f03d6a6b60 (patch) | |
tree | fd036fe0b3a7c99113d0be055f2ae63805fe7e13 /vnfs | |
parent | 6425289f2b983a1907d9d13e6751b2e4282b9f86 (diff) |
Add Message Router IP address to vDHCP template
- Add MR IP to vCPE-Infra Heat template
- Modify kea-sdnc-notify.conf for Nexus
- Update v_dhcp_install.sh to change the fake MR IP via sed
Change-Id: I90faff7142739ca209ab2ad0efe9fd7a8d8dfe95
Issue-ID: UCA-35
Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs')
-rw-r--r-- | vnfs/vCPE/scripts/kea-sdnc-notify.conf | 3 | ||||
-rw-r--r-- | vnfs/vCPE/scripts/v_dhcp_install.sh | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/vnfs/vCPE/scripts/kea-sdnc-notify.conf b/vnfs/vCPE/scripts/kea-sdnc-notify.conf index 1a8ee2e3..6fd09843 100644 --- a/vnfs/vCPE/scripts/kea-sdnc-notify.conf +++ b/vnfs/vCPE/scripts/kea-sdnc-notify.conf @@ -1,3 +1,4 @@ -{"url": "http://localhost/sdnc.php?macaddr=", +{ + "url": "http://DMAAP_IPADDR:3904/events/VCPE-DHCP-EVENT/", "siaddr": "siaddr" } diff --git a/vnfs/vCPE/scripts/v_dhcp_install.sh b/vnfs/vCPE/scripts/v_dhcp_install.sh index d88ed509..f9ea25b7 100644 --- a/vnfs/vCPE/scripts/v_dhcp_install.sh +++ b/vnfs/vCPE/scripts/v_dhcp_install.sh @@ -5,6 +5,7 @@ REPO_URL_ARTIFACTS=$(cat /opt/config/repo_url_artifacts.txt) DEMO_ARTIFACTS_VERSION=$(cat /opt/config/demo_artifacts_version.txt) INSTALL_SCRIPT_VERSION=$(cat /opt/config/install_script_version.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) +MR_IP_ADDR=$(cat /opt/config/mr_ip_addr.txt) # Convert Network CIDR to Netmask cdr2mask () { @@ -78,6 +79,7 @@ update-rc.d v_dhcp.sh defaults # Configure DHCP cp kea-dhcp4.conf /etc/kea-dhcp4-server.conf mv kea-dhcp4.conf /etc/kea/kea-dhcp4.conf +sed -i "s/DMAAP_IPADDR/"$MR_IP_ADDR"/g" kea-sdnc-notify.conf mv kea-sdnc-notify.conf /etc/kea/kea-sdnc-notify.conf sleep 1 |