196196 - State of Switchport Monitor for SPAN/ERSPAN
197197 type: bool
198198 default: false
199+ disable_lacp_suspend_individual:
200+ description:
201+ - If disabled, lacp will put the port to individual state and not suspend the port
202+ in case the port does not get LACP BPDU from the peer ports in the port-channel
203+ type: bool
204+ default: false
199205 lacp_port_priority:
200206 description:
201207 - <1-65535> Set LACP port priority on member interfaces, default is 32768
@@ -2348,6 +2354,7 @@ def dcnm_intf_validate_port_channel_input(self, config):
23482354 enable_pfc = dict (type = "bool" , default = False ),
23492355 duplex = dict (
23502356 type = "str" , default = "auto" , choices = ["auto" , "full" , "half" ]),
2357+ disable_lacp_suspend_individual = dict (type = "bool" , default = False ),
23512358 lacp_port_priority = dict (type = "int" , default = 32768 , range_min = 1 , range_max = 65535 ),
23522359 lacp_rate = dict (type = "str" , default = "normal" ),
23532360 )
@@ -2370,6 +2377,7 @@ def dcnm_intf_validate_port_channel_input(self, config):
23702377 enable_pfc = dict (type = "bool" , default = False ),
23712378 duplex = dict (
23722379 type = "str" , default = "auto" , choices = ["auto" , "full" , "half" ]),
2380+ disable_lacp_suspend_individual = dict (type = "bool" , default = False ),
23732381 lacp_port_priority = dict (type = "int" , default = 32768 , range_min = 1 , range_max = 65535 ),
23742382 lacp_rate = dict (type = "str" , default = "normal" ),
23752383 )
@@ -2946,6 +2954,10 @@ def dcnm_intf_get_pc_payload(self, delem, intf, profile):
29462954 "ENABLE_MONITOR" ] = delem [profile ]["enable_monitor" ]
29472955 intf ["interfaces" ][0 ]["nvPairs" ][
29482956 "PORT_DUPLEX_MODE" ] = delem [profile ]["duplex" ]
2957+ if delem [profile ].get ("disable_lacp_suspend_individual" ):
2958+ intf ["interfaces" ][0 ]["nvPairs" ]["DISABLE_LACP_SUSPEND" ] = delem [profile ]["disable_lacp_suspend_individual" ]
2959+ else :
2960+ intf ["interfaces" ][0 ]["nvPairs" ]["DISABLE_LACP_SUSPEND" ] = False
29492961 if delem [profile ].get ("lacp_port_priority" ):
29502962 intf ["interfaces" ][0 ]["nvPairs" ]["LACP_PORT_PRIO" ] = delem [profile ]["lacp_port_priority" ]
29512963 else :
@@ -2987,6 +2999,10 @@ def dcnm_intf_get_pc_payload(self, delem, intf, profile):
29872999 "ENABLE_MONITOR" ] = delem [profile ]["enable_monitor" ]
29883000 intf ["interfaces" ][0 ]["nvPairs" ][
29893001 "PORT_DUPLEX_MODE" ] = delem [profile ]["duplex" ]
3002+ if delem [profile ].get ("disable_lacp_suspend_individual" ):
3003+ intf ["interfaces" ][0 ]["nvPairs" ]["DISABLE_LACP_SUSPEND" ] = delem [profile ]["disable_lacp_suspend_individual" ]
3004+ else :
3005+ intf ["interfaces" ][0 ]["nvPairs" ]["DISABLE_LACP_SUSPEND" ] = False
29903006 if delem [profile ].get ("lacp_port_priority" ):
29913007 intf ["interfaces" ][0 ]["nvPairs" ]["LACP_PORT_PRIO" ] = delem [profile ]["lacp_port_priority" ]
29923008 else :
0 commit comments