//go:build !ignore_autogenerated
// +build !ignore_autogenerated

// Copyright 2024 Antrea Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by deepcopy-gen. DO NOT EDIT.

package interfacestore

import (
	net "net"
)

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ContainerInterfaceConfig) DeepCopyInto(out *ContainerInterfaceConfig) {
	*out = *in
	return
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerInterfaceConfig.
func (in *ContainerInterfaceConfig) DeepCopy() *ContainerInterfaceConfig {
	if in == nil {
		return nil
	}
	out := new(ContainerInterfaceConfig)
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EntityInterfaceConfig) DeepCopyInto(out *EntityInterfaceConfig) {
	*out = *in
	if in.UplinkPort != nil {
		in, out := &in.UplinkPort, &out.UplinkPort
		*out = new(OVSPortConfig)
		**out = **in
	}
	return
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EntityInterfaceConfig.
func (in *EntityInterfaceConfig) DeepCopy() *EntityInterfaceConfig {
	if in == nil {
		return nil
	}
	out := new(EntityInterfaceConfig)
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *InterfaceConfig) DeepCopyInto(out *InterfaceConfig) {
	*out = *in
	if in.IPs != nil {
		in, out := &in.IPs, &out.IPs
		*out = make([]net.IP, len(*in))
		for i := range *in {
			if (*in)[i] != nil {
				in, out := &(*in)[i], &(*out)[i]
				*out = make(net.IP, len(*in))
				copy(*out, *in)
			}
		}
	}
	if in.MAC != nil {
		in, out := &in.MAC, &out.MAC
		*out = make(net.HardwareAddr, len(*in))
		copy(*out, *in)
	}
	if in.OVSPortConfig != nil {
		in, out := &in.OVSPortConfig, &out.OVSPortConfig
		*out = new(OVSPortConfig)
		**out = **in
	}
	if in.ContainerInterfaceConfig != nil {
		in, out := &in.ContainerInterfaceConfig, &out.ContainerInterfaceConfig
		*out = new(ContainerInterfaceConfig)
		**out = **in
	}
	if in.TunnelInterfaceConfig != nil {
		in, out := &in.TunnelInterfaceConfig, &out.TunnelInterfaceConfig
		*out = new(TunnelInterfaceConfig)
		(*in).DeepCopyInto(*out)
	}
	if in.EntityInterfaceConfig != nil {
		in, out := &in.EntityInterfaceConfig, &out.EntityInterfaceConfig
		*out = new(EntityInterfaceConfig)
		(*in).DeepCopyInto(*out)
	}
	return
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterfaceConfig.
func (in *InterfaceConfig) DeepCopy() *InterfaceConfig {
	if in == nil {
		return nil
	}
	out := new(InterfaceConfig)
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *OVSPortConfig) DeepCopyInto(out *OVSPortConfig) {
	*out = *in
	return
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OVSPortConfig.
func (in *OVSPortConfig) DeepCopy() *OVSPortConfig {
	if in == nil {
		return nil
	}
	out := new(OVSPortConfig)
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TunnelInterfaceConfig) DeepCopyInto(out *TunnelInterfaceConfig) {
	*out = *in
	if in.LocalIP != nil {
		in, out := &in.LocalIP, &out.LocalIP
		*out = make(net.IP, len(*in))
		copy(*out, *in)
	}
	if in.RemoteIP != nil {
		in, out := &in.RemoteIP, &out.RemoteIP
		*out = make(net.IP, len(*in))
		copy(*out, *in)
	}
	return
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TunnelInterfaceConfig.
func (in *TunnelInterfaceConfig) DeepCopy() *TunnelInterfaceConfig {
	if in == nil {
		return nil
	}
	out := new(TunnelInterfaceConfig)
	in.DeepCopyInto(out)
	return out
}
