From nobody Sat Apr 30 03:33:19 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EAF451AAE152 for ; Sat, 30 Apr 2022 03:33:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kqw1C4swWz3Mbn for ; Sat, 30 Apr 2022 03:33:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8778319E87 for ; Sat, 30 Apr 2022 03:33:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 23U3XJ2g079127 for ; Sat, 30 Apr 2022 03:33:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23U3XJZ5079126 for bugs@FreeBSD.org; Sat, 30 Apr 2022 03:33:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263667] ifconfig: group flags -g and -G not consistent with expectation or man page Date: Sat, 30 Apr 2022 03:33:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jeff+freebsd@wagsky.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651289599; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=36UVwcwWfRQnKiFTEf4tfolXS9ybeeDnGku06gdpqyY=; b=VldbrLX6uogE2w07sFVMhZVshPOW1UXM3cG6ysvwB+pmFg5iEIX7YOqhxZaOpkC7S4IOAl 7tN7lI2w3uGsoMKIHIeXF71Ant5nRY70P46zE+eAMJfmzeAE00zyu6QQRBD6ujfbge6Tuz EWzBQ0YO1gNPpsiv+D+Zi6OfL5NMJPryyEFgLTtMRaJk9S4nCdESqY+eUQTgk+4bHQXDRv 73sqIVM7/CLXbrTsK9bWJhewmN2gUjKythSg1xQDcnMuozYyB8cVRH+9bg/7KNmf4mNoiF 6r2RIqT4ebRbLGljYT89ulI5RYYa9Uin1dk/C7rNnWtNlty+jn4s+7cynVENQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651289599; a=rsa-sha256; cv=none; b=xQFlf87XHgQORPdt2Bck0ljqkHoEjP6K8B/HGdhNUVcgGJZST5/4azy366K2fT3BFecEnr y/Jjc1Mp3mTWyD/bixds6G7NIYNqJNUZoaewDzrl7KxPwpeICOcclNON4swQ2+pz1VOomB lBFeGmiGNCoydIA85+8geEN9/N7dlfF3jEbz+PLwu2KqZjxtpI5/fEMLGxqvRYno0vKxcm s1W4wE1c7LPzG+jur4w6Nd+iB+BukGBkUdkk7yiFiHHz/GxccLunOlXhpOxfqHHn6rn247 t/XLFrBgpjFBdo/jYccPC4CgY4YhxcEz2Y+23whKSUuzT41HLfUUUlpoJ55fww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263667 Bug ID: 263667 Summary: ifconfig: group flags -g and -G not consistent with expectation or man page Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: jeff+freebsd@wagsky.com FreeBSD js1 13.1-RC4 FreeBSD 13.1-RC4 releng/13.1-n250133-283d1b98251 GENER= IC amd64 The group-selection flags' behavior is not sufficient to get a simple (actionable)=20 list of interfaces that are members of one group and not another.=20 The man page, as I understand it, suggests that this should be possible. [jeff@js1 ~/devel/jail-networking]$ /sbin/ifconfig -g @jname-si-real -G bri= dge vif0 vif0/jname-si- bridge6 Expected vif0 and vif0/jname-si- [jeff@js1 ~/devel/jail-networking]$ /sbin/ifconfig -a -g @jname-si-real -G bridge vif0: flags=3D8863 metric 0 mtu 1500 options=3D8 ether 02:c1:6f:13:e8:0a groups: epair @jname-si-real media: Ethernet 10Gbase-T (10Gbase-T ) status: active nd6 options=3D29 vif0/jname-si-: flags=3D8963 metric 0 mtu 1500 options=3D8 ether 02:c1:6f:13:e8:0b groups: epair @jname-si-real media: Ethernet 10Gbase-T (10Gbase-T ) status: active nd6 options=3D29 Works, but needs to be processed as text to become an actionable list sus as `for lvar in $(/sbin/ifconfig some args) ; do ` For reference [jeff@js1 ~/devel/jail-networking]$ ifconfig bridge6 bridge6: flags=3D8843 metric 0 mtu = 1500 ether 58:9c:fc:10:28:6c id 00:0d:b9:48:62:b5 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:0d:b9:48:62:b5 priority 32768 ifcost 0 port 0 member: vif0/jname-si- flags=3D1e7 ifmaxaddr 0 port 29 priority 128 path cost 2000 proto rstp role designated state forwarding member: igb1.6 flags=3D1e7 ifmaxaddr 0 port 19 priority 128 path cost 20000 proto rstp role designated state forwarding groups: bridge @jname-si-real nd6 options=3D9 --=20 You are receiving this mail because: You are the assignee for the bug.=