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

[CG] Add AAA Parcel #478

Merged
merged 9 commits into from
Feb 20, 2024
Merged

[CG] Add AAA Parcel #478

merged 9 commits into from
Feb 20, 2024

Conversation

kagrski
Copy link
Collaborator

@kagrski kagrski commented Feb 20, 2024

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")
        )
    ]
)

Copy link
Collaborator

@sbasan sbasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kagrski kagrski merged commit 58e0f2a into main Feb 20, 2024
10 checks passed
@kagrski kagrski deleted the add/parcel/aaa branch February 20, 2024 09:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants