Added "embedded Gateway Builder" Demo
Added DCTC10 Graphical panel Prepared for TC10 on SFP_01/SFP_02 - not properly working yetmaster AEC_2025_BOSCH
parent
25ed6b93f4
commit
b2018348d1
|
|
@ -19,6 +19,7 @@ from util_sfp import (
|
||||||
|
|
||||||
import ics
|
import ics
|
||||||
import argparse
|
import argparse
|
||||||
|
from sys import exit
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# This loads a single macsec configuration from selected yaml into supported
|
# This loads a single macsec configuration from selected yaml into supported
|
||||||
|
|
@ -36,7 +37,6 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
def run_test(args, power_supply):
|
def run_test(args, power_supply):
|
||||||
print(f"Attempting to load {args.yaml}...")
|
|
||||||
|
|
||||||
fail = 0
|
fail = 0
|
||||||
|
|
||||||
|
|
@ -52,6 +52,7 @@ def run_test(args, power_supply):
|
||||||
)
|
)
|
||||||
# if we only want reset, exit here
|
# if we only want reset, exit here
|
||||||
if args.reset:
|
if args.reset:
|
||||||
|
print("Reset")
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
# if we only want the phy macsec counters, read then exit
|
# if we only want the phy macsec counters, read then exit
|
||||||
|
|
@ -82,6 +83,7 @@ def run_test(args, power_supply):
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
# load yaml macsec config
|
# load yaml macsec config
|
||||||
|
print(f"Attempting to load {args.yaml}...")
|
||||||
load_macsec_from_yaml(device, args.config_netid, args.yaml, args.sfp)
|
load_macsec_from_yaml(device, args.config_netid, args.yaml, args.sfp)
|
||||||
|
|
||||||
if fail: # bail out if something fails
|
if fail: # bail out if something fails
|
||||||
|
|
|
||||||
|
|
@ -824,7 +824,7 @@ def sfp_ics_update_macsec(
|
||||||
def sfp_query_verify_macsec_support(device, netid_config, reset):
|
def sfp_query_verify_macsec_support(device, netid_config, reset):
|
||||||
netid = get_hwnetid(netid_config)
|
netid = get_hwnetid(netid_config)
|
||||||
# query for MACSec supproted SFP module
|
# query for MACSec supproted SFP module
|
||||||
print("Checking for SFP modules...")
|
print(f"Checking for SFP modules... ")
|
||||||
msa = sfp_query_module(device, netid)
|
msa = sfp_query_module(device, netid)
|
||||||
if msa is None:
|
if msa is None:
|
||||||
print(f"\nNo SFP module found on port {netid_config}... exiting.")
|
print(f"\nNo SFP module found on port {netid_config}... exiting.")
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue