From owner-svn-ports-head@freebsd.org Sun Dec 15 12:32:21 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BFAE61EC0EF; Sun, 15 Dec 2019 12:32:21 +0000 (UTC) (envelope-from kai@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47bP1K4n5Dz4VRG; Sun, 15 Dec 2019 12:32:21 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9F611D28A; Sun, 15 Dec 2019 12:32:21 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBFCWL6h023235; Sun, 15 Dec 2019 12:32:21 GMT (envelope-from kai@FreeBSD.org) Received: (from kai@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBFCWLo7023233; Sun, 15 Dec 2019 12:32:21 GMT (envelope-from kai@FreeBSD.org) Message-Id: <201912151232.xBFCWLo7023233@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kai set sender to kai@FreeBSD.org using -f From: Kai Knoblich Date: Sun, 15 Dec 2019 12:32:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r520173 - in head/net-mgmt/netbox: . files X-SVN-Group: ports-head X-SVN-Commit-Author: kai X-SVN-Commit-Paths: in head/net-mgmt/netbox: . files X-SVN-Commit-Revision: 520173 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Dec 2019 12:32:21 -0000 Author: kai Date: Sun Dec 15 12:32:20 2019 New Revision: 520173 URL: https://svnweb.freebsd.org/changeset/ports/520173 Log: net-mgmt/netbox: Fix assignment of IP addresses to interfaces * Backport a patch from upstream's repository which fixes the assignment of existing IP addresses to interfaces. Without that patch the assignment of an IP address gives no error but the interface doesn't contain the assigned IP address at the end. * Bump PORTREVISION for package change. MFH: 2019Q4 (blanket: bugfix) Added: head/net-mgmt/netbox/files/patch-netbox_ipam_tables.py (contents, props changed) Modified: head/net-mgmt/netbox/Makefile Modified: head/net-mgmt/netbox/Makefile ============================================================================== --- head/net-mgmt/netbox/Makefile Sun Dec 15 11:39:43 2019 (r520172) +++ head/net-mgmt/netbox/Makefile Sun Dec 15 12:32:20 2019 (r520173) @@ -3,6 +3,7 @@ PORTNAME= netbox DISTVERSIONPREFIX= v DISTVERSION= 2.6.8 +PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= kai@FreeBSD.org Added: head/net-mgmt/netbox/files/patch-netbox_ipam_tables.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/netbox/files/patch-netbox_ipam_tables.py Sun Dec 15 12:32:20 2019 (r520173) @@ -0,0 +1,20 @@ +Fix unable to assign existing IP addresses to interfaces + +Obtained from: +https://github.com/netbox-community/netbox/commit/1acdf58a4bb35d83a280464ac69aa961ff614df7 + +--- netbox/ipam/tables.py.orig 2019-12-15 11:43:12 UTC ++++ netbox/ipam/tables.py +@@ -85,7 +85,11 @@ IPADDRESS_LINK = """ + """ + + IPADDRESS_ASSIGN_LINK = """ +-{{ record }} ++{% if request.GET %} ++ {{ record }} ++{% else %} ++ {{ record }} ++{% endif %} + """ + + IPADDRESS_PARENT = """