sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
174 stars 695 forks source link

Feature request - Need HLAPIs to configure macsec using Spytest #7171

Open svelamal opened 1 year ago

svelamal commented 1 year ago

Description

For testing macsec feature on Cisco-8000 devices with traffic generator as Ixia using spytest testcases, APIs are required to configure macsec on Ixia interfaces.

Describe the results you expected: Expect HLTAPIs that can configure macsec feature, tweak keys, ciphers and send macsec traffic at line rate on Ixia interfaces.

Ixia device being used: Novus100GE8Q28+FAN+25G IxNetwork Software version: 9.20 Automation language used: Python

mgheorghe commented 1 year ago

macsec feature on Novus100GE8Q28+FAN+25G is supported since IxNetwork 9.10 EA Update3 so the 9.20 version you are using has support.. please have a look at \SampleScripts\IxNetwork\NGPF\Python\L2Security\ StaticMACsec_Sample_HLPy.py

you can have a look specifically for those 2 functions: ixiangpf.emulation_mka_config() ixiangpf.emulation_static_macsec_config()

let me know if this sample covers all your questions.