Skip to content

invalid macsec link metadata minigraph xml generation #325

Description

@sivanuka
  • regression added by 05a6979
  • with macsec_card=True generating invalid minigraph xml( missing declaration tag )
  • generating below xml without declaration
    <a:LinkMetadata> </a:LinkMetadata>
  • below is the valid xml
    <LinkMetadataDeclaration> <Link xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"> <a:LinkMetadata> </a:LinkMetadata> </Link> </LinkMetadataDeclaration>

Proposed fix:

invalid generated xml without declaration tags
</MetadataDeclaration> <a:LinkMetadata> <a:Name i:nil="true"/> <a:Properties> <a:DeviceProperty> <a:Name>MacSecEnabled</a:Name> <a:Value>True</a:Value> </a:DeviceProperty> </a:Properties> <a:Key>ARISTA01T3:Ethernet1;cmp214-5:Ethernet5/1</a:Key> </a:LinkMetadata> <a:LinkMetadata> <a:Name i:nil="true"/> <a:Properties> <a:DeviceProperty> <a:Name>MacSecEnabled</a:Name> <a:Value>True</a:Value> </a:DeviceProperty> </a:Properties> <a:Key>ARISTA01T3:Ethernet2;cmp214-5:Ethernet7/1</a:Key> </a:LinkMetadata>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions