Allow AttributeRegistry to signal treat-as-withdraw
[bgpcep.git] / bgp / parser-impl / src / test / java / org / opendaylight / protocol / bgp / parser / impl / PathAttributeParserTest.java
index e549185a047fc2ea8278860463075a229c1e2356..1a4e320fe8cbe8833d07e94438660ddc27af5047 100644 (file)
@@ -58,7 +58,7 @@ public class PathAttributeParserTest {
         final BGPExtensionProviderContext providerContext = ServiceLoaderBGPExtensionProviderContext
             .getSingletonInstance();
         final Attributes pathAttributes = providerContext.getAttributeRegistry()
-            .parseAttributes(buffer, null);
+            .parseAttributes(buffer, null).getAttributes();
         final Aigp aigp = pathAttributes.getAigp();
         final AigpTlv tlv = aigp.getAigpTlv();
 
@@ -79,7 +79,7 @@ public class PathAttributeParserTest {
         final BGPExtensionProviderContext providerContext = ServiceLoaderBGPExtensionProviderContext
             .getSingletonInstance();
         final Attributes pathAttributes = providerContext.getAttributeRegistry()
-            .parseAttributes(inputData, null);
+            .parseAttributes(inputData, null).getAttributes();
         final Aigp aigp = pathAttributes.getAigp();
 
         final AttributesBuilder pathAttributesBuilder = new AttributesBuilder();