def add_ch_grp_to_interface(<EOL>self, nexus_host, if_type, port, ch_grp):
if if_type != "<STR_LIT>":<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>", {'<STR_LIT>': if_type})<EOL>return<EOL><DEDENT>starttime = time.time()<EOL>path_snip = snipp.PATH_ALL<EOL>path_interface = "<STR_LIT>" + port + "<STR_LIT:]>"<EOL>body_snip = snipp.BODY_ADD_CH_GRP % (ch_grp, ch_grp, path_interface)<EOL>self.send_edit_string(nexus_host, path_snip, body_snip)<EOL>self.capture_and_print_timeshot(<EOL>starttime, "<STR_LIT>",<EOL>switch=nexus_host)<EOL>
Applies channel-group n to ethernet interface.