+ // defensive lookup
+ final LinkAttributes la;
+ final Attributes1 attr = attributes.getAugmentation(Attributes1.class);
+ if (attr != null) {
+ final AttributeType attrType = attr.getAttributeType();
+ if (attrType != null) {
+ la = ((org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev131125.linkstate.routes.linkstate.routes.linkstate.route.attributes.attribute.type.LinkCase)
+ attrType).getLinkAttributes();
+ } else {
+ LOG.debug("Missing attribute type in link {} route {}, skipping it", l, value);
+ la = null;
+ }
+ } else {
+ LOG.debug("Missing attributes in link {} route {}, skipping it", l, value);
+ la = null;
+ }