dropbox / pynsot

A Python client and CLI utility for the Network Source of Truth (NSoT) REST API.
https://pynsot.readthedocs.io
Other
46 stars 25 forks source link

Network state should use default value if not provided when creating networks #69

Closed jathanism closed 8 years ago

jathanism commented 8 years ago

If we don't provide state, this happens:

$ nsot networks add -c 10.125.0.0/16
[FAILURE] state: This field may not be null.

If we provide -S/--state, it works:

$ nsot networks add -c 10.125.0.0/16 -S allocated
[SUCCESS] Added network!

It should succeed without having to provide it.