Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

[CG] Add AAA Parcel #150

Closed
JimOverholt opened this issue Apr 25, 2024 · 1 comment
Closed

[CG] Add AAA Parcel #150

JimOverholt opened this issue Apr 25, 2024 · 1 comment

Comments

@JimOverholt
Copy link
Contributor

Example:

aaa = AAA(
    parcel_name="test",
    parcel_description="test2",
    server_auth_order=Global[List[str]](value=['local']),
)

aaa.add_authorization_rule(
    rule_id="1",
    method="commands",
    level="15",
    group=["local"],
    if_authenticated=False
)
aaa.add_authorization_rule(
    rule_id="2",
    method="commands",
    level="1",
    group=["local"],
    if_authenticated=False
)

aaa.add_radius_group(
    group_name="radius-1",
    vpn=0,
    radius_servers=[
        RadiusServerItem(
            address=as_global(IPv4Address("1.1.1.1")),
            key=as_global("password")
        ),
        RadiusServerItem(
            address=as_global(IPv4Address("2.2.2.2")),
            key=as_global("password")
        )
    ]
)
@JimOverholt
Copy link
Contributor Author

This issue was migrated from an old repository: CiscoDevNet/catalystwan#478

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant