Skip to content

Common Criteria Policy optional arguments missing null checks #179

@adivardh-cisco

Description

@adivardh-cisco

The API end point for configuring aaa common criteria policy i.e : configure_common_criteria_policy has optional arguments defined, operations on these optional args throws runtime errors when we don't provide these parameters because the defaults are None.

File: genielibs/pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/aaa/configure.py

Eg:

if int(lower_case) > 0:
        configs.append("lower-case {low}".format(low=lower_case))
if int(upper_case) > 0:
        configs.append("upper-case {up}".format(up=upper_case))

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions