Rename lists such that they follow IETF conventions
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / protocol / pcep / impl / object / PCEPExplicitRouteObjectParser.java
index 387634c73ee755e3c7969289db73969a3d3c507d..5e67e0887e402aef07e16ffdf9351ca99cd6e309 100644 (file)
@@ -35,7 +35,7 @@ public class PCEPExplicitRouteObjectParser extends AbstractEROWithSubobjectsPars
                final EroBuilder builder = new EroBuilder();
                builder.setIgnore(header.isIgnore());
                builder.setProcessingRule(header.isProcessingRule());
-               builder.setSubobjects(parseSubobjects(bytes));
+               builder.setSubobject(parseSubobjects(bytes));
                return builder.build();
        }
 
@@ -47,10 +47,10 @@ public class PCEPExplicitRouteObjectParser extends AbstractEROWithSubobjectsPars
                }
                final Ero ero = ((Ero) object);
 
-               assert !(ero.getSubobjects().isEmpty()) : "Empty Explicit Route Object.";
+               assert !(ero.getSubobject().isEmpty()) : "Empty Explicit Route Object.";
 
                return ObjectUtil.formatSubobject(TYPE, CLASS, object.isProcessingRule(), object.isIgnore(),
-                               serializeSubobject(ero.getSubobjects()));
+                               serializeSubobject(ero.getSubobject()));
        }
 
        @Override