Function to enable Group ID on the interface.

        This is needed to use the MAC, GID, VID Filter.
17236
def enable_gpid(self):
        
        if self.is_ncb:
            self.run_lldptool(["-T", "-i", self.port_name, "-g", "ncb",
                               "-V", "evb", "-c", "evbgpid=yes"])
            return True
        else:
            LOG.error("GPID cannot be set on NB")
            return False
449430
def update_group(self, group_id, name):
        
        return self.post(
            url="https://api.weixin.qq.com/cgi-bin/groups/update",
            data={"group": {
                "id": int(group_id),
                "name": to_text(name)
            }}
        )
308984
def group(self, id, expand=None):
        
        group = Group(self._options, self._session)
        params = {}
        if expand is not None:
            params['expand'] = expand
        group.find(id, params=params)
        return group
1216917
def update_group_property(self, group_id, group_properties):
        
        group_properties['group_id'] = group_id
        return self._post(
            'merchant/group/propertymod',
            data=group_properties
        )
1352241
public Group viewGroup(final String id) throws NotFoundException, GeneralException, UnauthorizedException {
        if (id == null) {
            throw new IllegalArgumentException("Group ID must be specified.");
        }
        return messageBirdService.requestByID(GROUPPATH, id, Group.class);
    }
1224653
def set_group_status(group_id, status, **kwargs):
    
    user_id = kwargs.get('user_id')
    try:
        group_i = db.DBSession.query(ResourceGroup).filter(ResourceGroup.id == group_id).one()
    except NoResultFound:
        raise ResourceNotFoundError("ResourceGroup %s not found"%(group_id))

    group_i.network.check_write_permission(user_id)

    group_i.status = status

    db.DBSession.flush()

    return group_i
1206904
function ContactsGroupsPermissionsAdd(options, groupId, username) {
    ActionAbstract.call(this, options);
    this._groupId = groupId;
    this._username = username;
}
1190759
def get_group(self, group_id):
    

    group = self.group_id_map.get(group_id)

    if group:
      return group

    self.logger.error('Group ID "%s" is not in datafile.' % group_id)
    self.error_handler.handle_error(exceptions.InvalidGroupException(enums.Errors.INVALID_GROUP_ID_ERROR))
    return None
632111
def group(group_id)
      data = request("/group/show", id: group_id)
      Hashie::Mash.new(data["group"])
    end
229897
def show_group(self, group_id):
        
        res = self.post('loadGroups', {'groupId': group_id})
        if isinstance(res, list):
            return _fix_group(res[0])
        else:
            return _fix_group(res)
289389
def create_group(groupname, gid, system=True):
    
    sudo(addgroup(groupname, gid, system))
1119859
function(filter, setOption){
        if(filter.group && setOption.name){
            //change group name
            this._groupFilter(filter, function(){
                setOption.name && (this.name = setOption.name);
            });
        }
        if(!filter.group){
            filter.group = 'root';
        }
        this._filter(filter, function(){
            if(this.type == 'ip'){
                setOption.ip && (this.ip = setOption.ip);
                setOption.domain && (this.domain = setOption.domain);
                setOption.comment && (this.comment = setOption.comment);
                (setOption.enable != undefined) && (this.enable = setOption.enable);
            }else{
                setOption.text && (this.text = setOption.text);
            }
        });
        return this;
    }
926264
def get_group_by_group_id(self, group_id):
        
        group_id_base64 = base64.b64encode(group_id).decode('ascii')
        groups = self.m["groups"]
        for g in groups:
            if (g["group_id"] == group_id_base64):
                return g
        return None
1142099
public FeatureList selectByGroup(String groupid) {
		FeatureList list = new FeatureList();
		for (FeatureI f : this) {
			if (f.group().equals(groupid)) {
				list.add(f);
			}
		}

		return list;
	}
1030604
function set_group($group_id)
    {
        if ($group_id) {
            $this->group_id = $group_id;
            $this->group_data = $this->get_group_entry($group_id);
        }
        else {
            $this->group_id = 0;
            $this->group_data = null;
        }
    }
179609
def addgroupmember(self, group_id, user_id, access_level):
        
        if not isinstance(access_level, int):
            if access_level.lower() == 'owner':
                access_level = 50
            elif access_level.lower() == 'master':
                access_level = 40
            elif access_level.lower() == 'developer':
                access_level = 30
            elif access_level.lower() == 'reporter':
                access_level = 20
            elif access_level.lower() == 'guest':
                access_level = 10
            else:
                return False

        data = {'id': group_id, 'user_id': user_id, 'access_level': access_level}

        request = requests.post(
            '{0}/{1}/members'.format(self.groups_url, group_id),
            headers=self.headers, data=data, verify=self.verify_ssl, auth=self.auth, timeout=self.timeout)

        return request.status_code == 201
1048419
def get_group_id(groupname):
    
    gid = single_line_stdout('id -g {0}'.format(groupname), expected_errors=(1,), shell=False)
    return check_int(gid)