// Convenience func to copy NWP data.
Convenience func to copy NWP data.
// Convenience func to copy NWP data .
func dc(dest,src *RedfishNWProtocol) {
	dest.valid = src.valid
	if ((dest.Oem == nil) && (src.Oem != nil)) {
		dest.Oem = &OemData{}
	}
	if (src.Oem != nil) {
		if (src.Oem.Syslog.ProtocolEnabled) {
			dest.Oem.Syslog = src.Oem.Syslog
		}
		if (src.Oem.SSHAdmin.AuthorizedKeys != "") {
			dest.Oem.SSHAdmin.AuthorizedKeys = src.Oem.SSHAdmin.AuthorizedKeys
		}
		if (src.Oem.SSHConsole.AuthorizedKeys != "") {
			dest.Oem.SSHConsole.AuthorizedKeys = src.Oem.SSHConsole.AuthorizedKeys
		}
	}
	if ((dest.NTP == nil) && (src.NTP != nil)) {
		dest.NTP = &NTPData{}
	}
	if (src.NTP != nil) {
		if (len(src.NTP.NTPServers) > 0) {
			dest.NTP.NTPServers = src.NTP.NTPServers
		}
		dest.NTP.ProtocolEnabled = src.NTP.ProtocolEnabled
		dest.NTP.Port = src.NTP.Port
	}
}
func dc ( dest , src * RedfishNWProtocol ) { dest . valid = src . valid if ( ( dest . Oem == nil ) && ( src . Oem != nil ) ) { dest . Oem = & OemData { } } if ( src . Oem != nil ) { if ( src . Oem . Syslog . ProtocolEnabled ) { dest . Oem . Syslog = src . Oem . Syslog } if ( src . Oem . SSHAdmin . AuthorizedKeys != " " ) { dest . Oem . SSHAdmin . AuthorizedKeys = src . Oem . SSHAdmin . AuthorizedKeys } if ( src . Oem . SSHConsole . AuthorizedKeys != " " ) { dest . Oem . SSHConsole . AuthorizedKeys = src . Oem . SSHConsole . AuthorizedKeys } } if ( ( dest . NTP == nil ) && ( src . NTP != nil ) ) { dest . NTP = & NTPData { } } if ( src . NTP != nil ) { if ( len ( src . NTP . NTPServers ) > 0 ) { dest . NTP . NTPServers = src . NTP . NTPServers } dest . NTP . ProtocolEnabled = src . NTP . ProtocolEnabled dest . NTP . Port = src . NTP . Port } }
Convenience func to copy NWP data.
Convenience func to copy NWP data .