Closed ChristopherJHart closed 2 days ago
Hello @ChristopherJHart,
It looks like a bug. Kindly give me some time to analyse this issue.
Thank you.
expected_output = {
"policy": {
"MACSEC_POLICY_1": {
"key_server_priority": 0,
"delay_protect": "FALSE",
"confidentiality_offset": 0,
"sak_rey_key_on_live_peer_loss": "FALSE",
"include_icv_indicator": "TRUE",
"cipher": "GCM-AES-256",
"interfaces": [
"Te0/0/0",
"Te0/0/1"
]
}
}
}
I have raised a PR for your issue and the output looks like the above. Please check and let me know in case of any queries. If everything is good, I will merge the PR.
Hi @Harishv01 - that looks good to me! Should the interface names be expanded?
I have expanded the interface names and the output looks like this. I have raised the PR and will let you know once it is merged.
expected_output = {
'send_secure_announcements': 'DISABLED',
'policy': {
"macsec": {
'key_server_priority': 0,
'delay_protect': "FALSE",
'confidentiality_offset': 30,
'sak_rey_key_on_live_peer_loss': "FALSE",
'include_icv_indicator': "TRUE",
'cipher': "GCM-AES-128",
'interfaces': ['TenGigabitEthernet1/0/48', 'FortyGigabitEthernet1/1/2', 'GigabitEthernet2/0/12', 'GigabitEthernet2/0/22', 'TenGigabitEthernet3/0/46', 'TenGigabitEthernet3/0/48']
},
'macsec1': {
'cipher': 'GCM-AES-128',
'confidentiality_offset': 30,
'delay_protect': 'FALSE',
'include_icv_indicator': 'TRUE',
'interfaces': ['TenGigabitEthernet1/0/48', 'FortyGigabitEthernet1/1/2'],
'key_server_priority': 0,
'sak_rey_key_on_live_peer_loss': 'FALSE'
},
'macsec2': {
'cipher': 'GCM-AES-128',
'confidentiality_offset': 30,
'delay_protect': 'FALSE',
'include_icv_indicator': 'TRUE',
'interfaces': ['TenGigabitEthernet1/0/48'],
'key_server_priority': 0,
'sak_rey_key_on_live_peer_loss': 'FALSE'
},
"DEFAULT POLICY": {
'key_server_priority': 0,
'delay_protect': "FALSE",
'confidentiality_offset': 0,
'sak_rey_key_on_live_peer_loss': "FALSE",
'include_icv_indicator': "TRUE",
'cipher': "GCM-AES-128"
}
}
}
Thank you.
The PR has been merged and this fix will be available in the next version of pyats, i.e. 24.5. Hence, I am closing this ticket.
Thank you.
Sample CLI output:
Traceback: