196196 - State of Switchport Monitor for SPAN/ERSPAN
197197 type: bool
198198 default: false
199+ lacp_port_priority:
200+ description:
201+ - <1-65535> Set LACP port priority on member interfaces, default is 32768
202+ type: int
203+ default: 32768
204+ lacp_rate:
205+ description:
206+ - Set the rate at which LACP control packets are sent to an LACP-supported
207+ interface. Normal rate (30 seconds), fast rate (1 second), rate is set on member
208+ interfaces, default is normal
209+ type: str
210+ choices: ['normal', 'fast']
211+ default: normal
199212 profile_vpc:
200213 description:
201214 - Though the key shown here is 'profile_vpc' the actual key to be used in playbook
335348 - Enable lacp convergence for vPC port-channels
336349 type: bool
337350 default: false
351+ lacp_port_priority:
352+ description:
353+ - <1-65535> Set LACP port priority on member interfaces, default is 32768
354+ type: int
355+ default: 32768
356+ lacp_rate:
357+ description:
358+ - Set the rate at which LACP control packets are sent to an LACP-supported
359+ interface. Normal rate (30 seconds), fast rate (1 second), rate is set on member
360+ interfaces, default is normal
361+ type: str
362+ choices: ['normal', 'fast']
363+ default: normal
338364 profile_subint:
339365 description:
340366 - Though the key shown here is 'profile_subint' the actual key to be used in playbook
@@ -1963,6 +1989,8 @@ def __init__(self, module):
19631989 "ENABLE_ORPHAN_PORT" : "orphan_port" ,
19641990 "DISABLE_LACP_SUSPEND" : "disable_lacp_suspend_individual" ,
19651991 "ENABLE_LACP_VPC_CONV" : "enable_lacp_vpc_convergence" ,
1992+ "LACP_PORT_PRIO" : "lacp_port_priority" ,
1993+ "LACP_RATE" : "lacp_rate" ,
19661994 "ENABLE_PFC" : "enable_pfc" ,
19671995 "ENABLE_MONITOR" : "enable_monitor" ,
19681996 "CDP_ENABLE" : "enable_cdp" ,
@@ -2320,6 +2348,8 @@ def dcnm_intf_validate_port_channel_input(self, config):
23202348 enable_pfc = dict (type = "bool" , default = False ),
23212349 duplex = dict (
23222350 type = "str" , default = "auto" , choices = ["auto" , "full" , "half" ]),
2351+ lacp_port_priority = dict (type = "int" , default = 32768 , range_min = 1 , range_max = 65535 ),
2352+ lacp_rate = dict (type = "str" , default = "normal" ),
23232353 )
23242354
23252355 pc_prof_spec_access = dict (
@@ -2340,6 +2370,8 @@ def dcnm_intf_validate_port_channel_input(self, config):
23402370 enable_pfc = dict (type = "bool" , default = False ),
23412371 duplex = dict (
23422372 type = "str" , default = "auto" , choices = ["auto" , "full" , "half" ]),
2373+ lacp_port_priority = dict (type = "int" , default = 32768 , range_min = 1 , range_max = 65535 ),
2374+ lacp_rate = dict (type = "str" , default = "normal" ),
23432375 )
23442376
23452377 pc_prof_spec_l3 = dict (
@@ -2426,6 +2458,8 @@ def dcnm_intf_validate_virtual_port_channel_input(self, cfg):
24262458 admin_state = dict (type = "bool" , default = True ),
24272459 disable_lacp_suspend_individual = dict (type = "bool" , default = False ),
24282460 enable_lacp_vpc_convergence = dict (type = "bool" , default = False ),
2461+ lacp_port_priority = dict (type = "int" , default = 32768 , range_min = 1 , range_max = 65535 ),
2462+ lacp_rate = dict (type = "str" , default = "normal" ),
24292463 )
24302464
24312465 vpc_prof_spec_access = dict (
@@ -2912,6 +2946,8 @@ def dcnm_intf_get_pc_payload(self, delem, intf, profile):
29122946 "ENABLE_MONITOR" ] = delem [profile ]["enable_monitor" ]
29132947 intf ["interfaces" ][0 ]["nvPairs" ][
29142948 "PORT_DUPLEX_MODE" ] = delem [profile ]["duplex" ]
2949+ intf ["interfaces" ][0 ]["nvPairs" ]["LACP_PORT_PRIO" ] = delem [profile ]["lacp_port_priority" ]
2950+ intf ["interfaces" ][0 ]["nvPairs" ]["LACP_RATE" ] = delem [profile ]["lacp_rate" ]
29152951 if delem [profile ]["mode" ] == "access" :
29162952 if delem [profile ]["members" ] is None :
29172953 intf ["interfaces" ][0 ]["nvPairs" ]["MEMBER_INTERFACES" ] = ""
@@ -2945,6 +2981,8 @@ def dcnm_intf_get_pc_payload(self, delem, intf, profile):
29452981 "ENABLE_MONITOR" ] = delem [profile ]["enable_monitor" ]
29462982 intf ["interfaces" ][0 ]["nvPairs" ][
29472983 "PORT_DUPLEX_MODE" ] = delem [profile ]["duplex" ]
2984+ intf ["interfaces" ][0 ]["nvPairs" ]["LACP_PORT_PRIO" ] = delem [profile ]["lacp_port_priority" ]
2985+ intf ["interfaces" ][0 ]["nvPairs" ]["LACP_RATE" ] = delem [profile ]["lacp_rate" ]
29482986 if delem [profile ]["mode" ] == "l3" :
29492987 if delem [profile ]["members" ] is None :
29502988 intf ["interfaces" ][0 ]["nvPairs" ]["MEMBER_INTERFACES" ] = ""
@@ -3170,6 +3208,8 @@ def dcnm_intf_get_vpc_payload(self, delem, intf, profile):
31703208 intf ["interfaces" ][0 ]["nvPairs" ]["ENABLE_LACP_VPC_CONV" ] = delem [profile ]["enable_lacp_vpc_convergence" ]
31713209 else :
31723210 intf ["interfaces" ][0 ]["nvPairs" ]["ENABLE_LACP_VPC_CONV" ] = False
3211+ intf ["interfaces" ][0 ]["nvPairs" ]["LACP_PORT_PRIO" ] = delem [profile ]["lacp_port_priority" ]
3212+ intf ["interfaces" ][0 ]["nvPairs" ]["LACP_RATE" ] = delem [profile ]["lacp_rate" ]
31733213 intf ["interfaces" ][0 ]["nvPairs" ]["INTF_NAME" ] = ifname
31743214 intf ["interfaces" ][0 ]["nvPairs" ]["SPEED" ] = self .dcnm_intf_xlate_speed (
31753215 str (delem [profile ].get ("speed" , "" ))
@@ -4267,6 +4307,8 @@ def dcnm_intf_compare_want_and_have(self, state):
42674307 "CDP_ENABLE" ,
42684308 "DISABLE_LACP_SUSPEND" ,
42694309 "ENABLE_LACP_VPC_CONV" ,
4310+ "LACP_PORT_PRIO" ,
4311+ "LACP_RATE" ,
42704312 "ENABLE_MONITOR" ,
42714313 "ENABLE_ORPHAN_PORT" ,
42724314 "ENABLE_PFC" ,
0 commit comments