Skip to content

Commit

Permalink
Description added to objects & Remove port from required protocolport…
Browse files Browse the repository at this point in the history
…object

By removing port from required_for_post for protocolportobject allows creation of  non tcp/udp objects (poor naming by cisco api?)
Added descriptions to valid json data (requested by more than one of my clients)
  • Loading branch information
mcclem committed Oct 1, 2023
1 parent afe5fbe commit c90431f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions fmcapi/api_objects/object_services/fqdns.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class FQDNS(APIClassTemplate):
VALID_JSON_DATA = [
"id",
"name",
'description',
"type",
"overridableTargetId",
"value",
Expand Down
1 change: 1 addition & 0 deletions fmcapi/api_objects/object_services/icmpv4objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class ICMPv4Objects(APIClassTemplate):
VALID_JSON_DATA = [
"id",
"name",
"description",
"type",
"overrideTargetId",
"code",
Expand Down
2 changes: 1 addition & 1 deletion fmcapi/api_objects/object_services/protocolportobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ProtocolPortObjects(APIClassTemplate):
VALID_JSON_DATA = ["id", "name", "description", "port", "protocol", "type"]
VALID_FOR_KWARGS = VALID_JSON_DATA + []
URL_SUFFIX = "/object/protocolportobjects"
REQUIRED_FOR_POST = ["name", "port", "protocol"]
REQUIRED_FOR_POST = ["name", "protocol"]

def __init__(self, fmc, **kwargs):
"""
Expand Down

0 comments on commit c90431f

Please sign in to comment.