code: def add_ch_grp_to_interface(
          self, nexus_host, if_type, port, ch_grp):
          
  
          if if_type != "ethernet":
              LOG.error("Unexpected interface type %(iftype)s when "
                        "adding change group", {'iftype': if_type})
              return
  
          starttime = time.time()
  
          path_snip = snipp.PATH_ALL
          path_interface = "phys-[eth" + port + "]"
  
          body_snip = snipp.BODY_ADD_CH_GRP % (ch_grp, ch_grp, path_interface)
  
          self.send_edit_string(nexus_host, path_snip, body_snip)
  
          self.capture_and_print_timeshot(
              starttime, "add_ch_group",
              switch=nexus_host)
docs: Applies channel-group n to ethernet interface.