nsot icon indicating copy to clipboard operation
nsot copied to clipboard

Allow Interfaces to be created with null description, speed, or type using defaults

Open jathanism opened this issue 9 years ago • 0 comments

For these Interface fields:

  • description
  • speed
  • type

If these fields are presented as null or None values on incoming payloads on create (POST), then the NSoT default value should be used.

This is to simplify client code for fields that cannot have null values, but which do have defaults on the backend. (Currently there is a workaround for this in pynsot CLI util, but we shouldn't need to do that.)

jathanism avatar Apr 17 '16 20:04 jathanism