Make AS 'number' required, add missing props to SocketExt. closes #77

stix2.0
Emmanuelle Vargas-Gonzalez 2017-10-11 15:10:06 -04:00
parent ed2cf28cdf
commit cccd42d984
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class AutonomousSystem(_Observable):
_properties = OrderedDict()
_properties.update([
('type', TypeProperty(_type)),
('number', IntegerProperty()),
('number', IntegerProperty(required=True)),
('name', StringProperty()),
('rir', StringProperty()),
('extensions', ExtensionsProperty(enclosing_type=_type)),
@ -459,6 +459,8 @@ class SocketExt(_Extension):
"SOCK_RDM",
"SOCK_SEQPACKET",
])),
('socket_descriptor', IntegerProperty()),
('socket_handle', IntegerProperty()),
])