@@ -158,7 +158,7 @@ func CreateNetwork(network intent.ConfigNetwork, stateDriver core.StateDriver, t
158
158
nwCfg .IPv6Gateway = network .IPv6Gateway
159
159
160
160
// Reserve gateway IPv6 address if gateway is specified
161
- hostID , err := netutils .GetIPv6HostID (nwCfg .IPv6Subnet , nwCfg .IPv6SubnetLen , 128 , nwCfg .IPv6Gateway )
161
+ hostID , err := netutils .GetIPv6HostID (nwCfg .IPv6Subnet , nwCfg .IPv6SubnetLen , nwCfg .IPv6Gateway )
162
162
if err != nil {
163
163
log .Errorf ("Error parsing gateway address %s. Err: %v" , nwCfg .IPv6Gateway , err )
164
164
return err
@@ -503,12 +503,12 @@ func networkAllocAddress(nwCfg *mastercfg.CfgNetworkState, reqAddr string, isIPv
503
503
if reqAddr == "" {
504
504
if isIPv6 {
505
505
// Get the next available IPv6 address
506
- hostID , err = netutils .GetNextIPv6HostID (nwCfg .IPv6LastHost , nwCfg .IPv6Subnet , nwCfg .IPv6SubnetLen , 128 , nwCfg .IPv6AllocMap )
506
+ hostID , err = netutils .GetNextIPv6HostID (nwCfg .IPv6LastHost , nwCfg .IPv6Subnet , nwCfg .IPv6SubnetLen , nwCfg .IPv6AllocMap )
507
507
if err != nil {
508
508
log .Errorf ("create eps: error allocating ip. Error: %s" , err )
509
509
return "" , err
510
510
}
511
- ipAddress , err = netutils .GetSubnetIPv6 (nwCfg .IPv6Subnet , nwCfg .IPv6SubnetLen , 128 , hostID )
511
+ ipAddress , err = netutils .GetSubnetIPv6 (nwCfg .IPv6Subnet , nwCfg .IPv6SubnetLen , hostID )
512
512
if err != nil {
513
513
log .Errorf ("create eps: error acquiring subnet ip. Error: %s" , err )
514
514
return "" , err
@@ -540,7 +540,7 @@ func networkAllocAddress(nwCfg *mastercfg.CfgNetworkState, reqAddr string, isIPv
540
540
541
541
} else if reqAddr != "" && nwCfg .SubnetIP != "" {
542
542
if isIPv6 {
543
- hostID , err = netutils .GetIPv6HostID (nwCfg .IPv6Subnet , nwCfg .IPv6SubnetLen , 128 , reqAddr )
543
+ hostID , err = netutils .GetIPv6HostID (nwCfg .IPv6Subnet , nwCfg .IPv6SubnetLen , reqAddr )
544
544
if err != nil {
545
545
log .Errorf ("create eps: error getting host id from hostIP %s Subnet %s/%d. Error: %s" ,
546
546
reqAddr , nwCfg .IPv6Subnet , nwCfg .IPv6SubnetLen , err )
@@ -578,7 +578,7 @@ func networkAllocAddress(nwCfg *mastercfg.CfgNetworkState, reqAddr string, isIPv
578
578
func networkReleaseAddress (nwCfg * mastercfg.CfgNetworkState , ipAddress string ) error {
579
579
isIPv6 := netutils .IsIPv6 (ipAddress )
580
580
if isIPv6 {
581
- hostID , err := netutils .GetIPv6HostID (nwCfg .SubnetIP , nwCfg .SubnetLen , 128 , ipAddress )
581
+ hostID , err := netutils .GetIPv6HostID (nwCfg .SubnetIP , nwCfg .SubnetLen , ipAddress )
582
582
if err != nil {
583
583
log .Errorf ("error getting host id from hostIP %s Subnet %s/%d. Error: %s" ,
584
584
ipAddress , nwCfg .SubnetIP , nwCfg .SubnetLen , err )
0 commit comments