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

Commit

Permalink
UX2.0 AAAParcel UserItem: fix default value for privilege
Browse files Browse the repository at this point in the history
  • Loading branch information
smialy committed May 7, 2024
1 parent 6aace9d commit af80b2b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from catalystwan.api.configuration_groups.parcel import Default, Global, Variable, _ParcelBase, as_default, as_global

DEFAULT_USER_PRIVILEGE = "15"


class PubkeyChainItem(BaseModel):
model_config = ConfigDict(extra="forbid", populate_by_name=True)
Expand Down Expand Up @@ -37,7 +39,7 @@ class UserItem(BaseModel):
)
)
privilege: Union[Global[str], Variable, Default[str], None] = Field(
default=None, description="Set Privilege Level for this user"
default=as_default(DEFAULT_USER_PRIVILEGE), description="Set Privilege Level for this user"
)
pubkey_chain: Optional[List[PubkeyChainItem]] = Field(
default=None,
Expand Down

0 comments on commit af80b2b

Please sign in to comment.