Skip to content

Commit

Permalink
feat: Add new tag colors (PaloAltoNetworks#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgollo committed Jun 15, 2021
1 parent 09804d4 commit ef3e587
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 1 deletion.
56 changes: 55 additions & 1 deletion plugins/modules/panos_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@
color:
description: >
- The color of the tag object. Valid values are I(red, green, blue, yellow, copper, orange, purple, gray,
light green, cyan, light gray, blue gray, lime, black, gold, and brown).
light green, cyan, light gray, blue gray, lime, black, gold, brown, olive, maroon, red-orange,
yellow-orange, forest green, turquoise blue, azure blue, cerulean blue, midnight blue, medium blue,
cobalt blue, violet blue, blue violet, medium violet, medium rose, lavender, orchid, thistle, peach,
salmon, magenta, reggd violet, mahogany, burnt sienna and chestnut).
type: str
choices:
- red
Expand All @@ -159,6 +162,31 @@
- black
- gold
- brown
- olive
- maroon
- red-orange
- yellow-orange
- forest green
- turquoise blue
- azure blue
- cerulean blue
- midnight blue
- medium blue
- cobalt blue
- violet blue
- blue violet
- medium violet
- medium rose
- lavender
- orchid
- thistle
- peach
- salmon
- magenta
- red violet
- mahogany
- burnt sienna
- chestnut
vsys:
description:
- The vsys to put the object into.
Expand Down Expand Up @@ -391,6 +419,32 @@ def main():
"black",
"gold",
"brown",
"olive",
"maroon",
"red-orange",
"yellow-orange",
"forest green",
"turquoise blue",
"azure blue",
"cerulean blue",
"midnight blue",
"medium blue",
"cobalt blue",
"violet blue",
"blue violet",
"medium violet",
"medium rose",
"lavender",
"orchid",
"thistle",
"peach",
"salmon",
"magenta",
"red violet",
"mahogany",
"burnt sienna",
"chestnut",

],
),
vsys=dict(default="vsys1"),
Expand Down
25 changes: 25 additions & 0 deletions plugins/modules/panos_object_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,31 @@
"color14": "black",
"color15": "gold",
"color16": "brown",
"color17": "olive",
"color19": "maroon",
"color20": "red-orange",
"color21": "yellow-orange",
"color22": "forest green",
"color23": "turquoise blue",
"color24": "azure blue",
"color25": "cerulean blue",
"color26": "midnight blue",
"color27": "medium blue",
"color28": "cobalt blue",
"color29": "violet blue",
"color30": "blue violet",
"color31": "medium violet",
"color32": "medium rose",
"color33": "lavender",
"color34": "orchid",
"color35": "thistle",
"color36": "peach",
"color37": "salmon",
"color38": "magenta",
"color39": "red violet",
"color40": "mahogany",
"color41": "burnt sienna",
"color42": "chestnut",
}


Expand Down
50 changes: 50 additions & 0 deletions plugins/modules/panos_tag_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,31 @@
- black
- gold
- brown
- olive
- maroon
- red-orange
- yellow-orange
- forest green
- turquoise blue
- azure blue
- cerulean blue
- midnight blue
- medium blue
- cobalt blue
- violet blue
- blue violet
- medium violet
- medium rose
- lavender
- orchid
- thistle
- peach
- salmon
- magenta
- red violet
- mahogany
- burnt sienna
- chestnut
comments:
description:
- Comments for the tag.
Expand Down Expand Up @@ -123,6 +148,31 @@
"black",
"gold",
"brown",
"olive",
"maroon",
"red-orange",
"yellow-orange",
"forest green",
"turquoise blue",
"azure blue",
"cerulean blue",
"midnight blue",
"medium blue",
"cobalt blue",
"violet blue",
"blue violet",
"medium violet",
"medium rose",
"lavender",
"orchid",
"thistle",
"peach",
"salmon",
"magenta",
"red violet",
"mahogany",
"burnt sienna",
"chestnut",
]


Expand Down

0 comments on commit ef3e587

Please sign in to comment.