@@ -131,7 +131,7 @@ class RadiusServer(FeatureTemplateValidator):
131131 description = "The accounting port for the RADIUS server" ,
132132 )
133133 vpn : Optional [str ] = Field (
134- default = 0 ,
134+ default = "0" ,
135135 json_schema_extra = {"vmanage_key" : "vpn" },
136136 description = "Set VPN in which RADIUS server is located" ,
137137 )
@@ -159,7 +159,7 @@ class TacacsServer(FeatureTemplateValidator):
159159 description = "The authentication port for the TACACS+ server" ,
160160 )
161161 vpn : Optional [str ] = Field (
162- default = 0 ,
162+ default = "0" ,
163163 json_schema_extra = {"vmanage_key" : "vpn" },
164164 description = "Set VPN in which TACACS+ server is located" ,
165165 )
@@ -185,7 +185,7 @@ class TaskPermissions(FeatureTemplateValidator):
185185 description = "Select the task to set privileges for" ,
186186 )
187187 permission : List [TaskPermission ] = Field (
188- default = "pap" ,
188+ default = [ "read" ], # type: ignore
189189 json_schema_extra = {
190190 "vmanage_key" : "permission" ,
191191 },
@@ -207,7 +207,7 @@ class UserGroup(FeatureTemplateValidator):
207207 json_schema_extra = {"vmanage_key" : "name" },
208208 description = "Set name of user group" ,
209209 )
210- task : List [TaskPermissions ] = Field (
210+ task : Optional [ List [TaskPermissions ] ] = Field (
211211 default = None ,
212212 json_schema_extra = {"vmanage_key" : "task" , "priority_order" : ["mode" , "permission" ]},
213213 description = "Set the user group's tasks and task privileges. Skipping tasks sets all as read and write" ,
@@ -220,7 +220,7 @@ class AAAModel(FeatureTemplate):
220220
221221 auth_order : Optional [List [AuthenticationOrder ]] = Field (
222222 validate_default = True ,
223- default = ["local" , "radius" , "tacacs" ],
223+ default = ["local" , "radius" , "tacacs" ], # type: ignore
224224 json_schema_extra = {"vmanage_key" : "auth-order" , "data_path" : ["aaa" ]},
225225 description = "ServerGroups authentication order to user access" ,
226226 )
0 commit comments