VOL-3614 Created multicast GEM If is_multicast flag is enable into tech profile

Change-Id: I82f680df0c2a51841965c484ae3398a1606b2739
diff --git a/internal/pkg/onuadaptercore/openonu_utils.go b/internal/pkg/onuadaptercore/openonu_utils.go
index aa7de95..0db62ed 100644
--- a/internal/pkg/onuadaptercore/openonu_utils.go
+++ b/internal/pkg/onuadaptercore/openonu_utils.go
@@ -18,7 +18,9 @@
 package adaptercoreonu
 
 import (
+	"encoding/binary"
 	"errors"
+	"net"
 	"regexp"
 	"strconv"
 	"strings"
@@ -41,3 +43,11 @@
 	// Atoi returns uint64 and need to be type-casted to uint8 as tpID is uint8 size.
 	return uint8(tpID), err
 }
+
+//IPToInt32 transforms an IP of net.Ip type to int32
+func IPToInt32(ip net.IP) uint32 {
+	if len(ip) == 16 {
+		return binary.BigEndian.Uint32(ip[12:16])
+	}
+	return binary.BigEndian.Uint32(ip)
+}