-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addition of new module ndo_ptp_policy and its child ndo_ptp_policy_profiles (DCNE-68) #578
base: master
Are you sure you want to change the base?
Conversation
9d63e54
to
b5b93e2
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #578 +/- ##
===========================================
- Coverage 72.58% 18.15% -54.43%
===========================================
Files 55 98 +43
Lines 5504 9152 +3648
Branches 1462 2384 +922
===========================================
- Hits 3995 1662 -2333
- Misses 1174 7489 +6315
+ Partials 335 1 -334
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…o_ptp_policy_profiles
state: absent | ||
|
||
- name: Delete a PTP policy using UUID | ||
cisco.mso.ndo_ptp_policy_profiles: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cisco.mso.ndo_ptp_policy_profiles: | |
cisco.mso.ndo_ptp_policy: |
mso.existing = mso.previous = existing_ptp_policies | ||
|
||
if state == "present": | ||
mso_values_update = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use dict()
instead of {}
and move it under if match:
.
append_update_ops_data(ops, match.details, path, mso_values_update) | ||
mso.sanitize(match.details, collate=True) | ||
else: | ||
mso_values = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use dict() instead of {}.
@@ -211,3 +211,5 @@ | |||
|
|||
ORIGINATE_DEFAULT_ROUTE = {"only": "only", "in_addition": "inAddition", "": ""} | |||
L3OUT_ROUTING_PROTOCOLS = {"bgp": ["bgp"], "ospf": ["ospf"], "bgpOspf": ["bgp", "ospf"], None: [None], "": None, "bgpospf": "bgpOspf", "ospfbgp": "bgpOspf"} | |||
|
|||
PROFILE_TEMPLATE = {"aes67-2015": "aes67", "default": "default", "smpte-2059-2": "smpte", "telecom-8275-1": "telecomFullPath"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use _
instead of -
?
ptp_policy_profile_name=dict(type="str", aliases=["name"]), | ||
ptp_policy_profile_uuid=dict(type="str", aliases=["uuid"]), | ||
delay_interval=dict(type="int"), | ||
profile_template=dict(type="str", choices=["aes67-2015", "default", "telecom-8275-1", "smpte-2059-2"]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
profile_template=dict(type="str", choices=["aes67-2015", "default", "telecom-8275-1", "smpte-2059-2"]), | |
profile_template=dict(type="str", choices=list(PROFILE_TEMPLATE)), |
No description provided.