Skip to content

Commit

Permalink
Merge pull request #578 from open-traffic-generator/dev-bug-fix
Browse files Browse the repository at this point in the history
Bug Fix
  • Loading branch information
arkajyoti-cloud authored Nov 25, 2024
2 parents 37f71b3 + 60ebfe9 commit effca7e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import setuptools

pkg_name = "snappi_ixnetwork"
version = "1.13.0"
version = "1.17.0"

# read long description from readme.md
base_dir = os.path.abspath(os.path.dirname(__file__))
Expand Down Expand Up @@ -37,7 +37,7 @@
install_requires=["ixnetwork-restpy>=1.0.52"],
extras_require={
"testing": [
"snappi==1.13.0",
"snappi==1.17.0",
"pytest",
"mock",
"dpkt==1.9.4",
Expand Down
12 changes: 11 additions & 1 deletion snappi_ixnetwork/snappi_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,16 @@ def get_metrics(self, request):
metric_res = self.metrics_response()
metric_res.flow_metrics.deserialize(response)
return metric_res
if request.get("choice") == "lag":
response = self.traffic_item.results(request.lag)
metric_res = self.metrics_response()
metric_res.lag_metrics.deserialize(response)
return metric_res
if request.get("choice") == "lacp":
response = self.traffic_item.results(request.lacp)
metric_res = self.metrics_response()
metric_res.lacp_metrics.deserialize(response)
return metric_res
if (
request.get("choice")
in self.protocol_metrics.get_supported_protocols()
Expand Down Expand Up @@ -1089,7 +1099,7 @@ def select_vports(self, port_name_filters=[]):
"filters": [],
},
{
"child": "^(eth.*|novus.*|uhd.*|atlas.*|ares.*|star.*)$",
"child": "^(eth.*|novus.*|uhd.*|atlas.*|ares.*|star.*|ten.*)$",
"properties": ["*"],
"filters": [],
},
Expand Down

0 comments on commit effca7e

Please sign in to comment.