Skip to content

Add fields to device component models for tracking creation/update times #5901

@jeremystretch

Description

@jeremystretch

Environment

  • Python version: 3.7.9
  • NetBox version: 2.10.5

Proposed Functionality

Add the standard created and last_updated fields to all device component and component template models. These will appear in the REST API serializer as well as within the NetBox UI.

Use Case

Automatically tracks the date on which objects are created, and the date and time at which they have been most recently updated.

Database Changes

Add created and last_updated fields to each device component (console ports, power outlets, interfaces, etc.) model as well as their template models (used for instantiation from a device type).

External Dependencies

None

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions