Skip to content

Commit c0ca306

Browse files
REmove get_sflow
1 parent a9273d0 commit c0ca306

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

  • python-avd/pyavd/_eos_designs/structured_config/underlay

python-avd/pyavd/_eos_designs/structured_config/underlay/utils.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -312,21 +312,6 @@ def _get_acl_for_l3_generic_interface(
312312
peer_ip=interface.peer_ip,
313313
)
314314

315-
def _get_sflow(self: AvdStructuredConfigUnderlayProtocol, interface: str, configured_sflow: bool | None) -> bool | None:
316-
"""
317-
Get the configured sFlow state if the interface supports it based on platform settings.
318-
319-
Considers global sFlow support and specific support for subinterfaces.
320-
321-
Returns:
322-
The configured_sflow value if supported, otherwise None.
323-
"""
324-
sflow_supported_on_interface = self.shared_utils.platform_settings.feature_support.sflow and (
325-
"." not in interface or self.shared_utils.platform_settings.feature_support.sflow_subinterfaces
326-
)
327-
328-
return configured_sflow if sflow_supported_on_interface else None
329-
330315
@cached_property
331316
def _underlay_p2p_links(self: AvdStructuredConfigUnderlayProtocol) -> list[EosDesignsFacts.UplinksItem]:
332317
"""Return a list of P2P underlay links."""

0 commit comments

Comments
 (0)