Package org.onosproject.p4runtime.model
Class P4InfoParser
- java.lang.Object
-
- org.onosproject.p4runtime.model.P4InfoParser
-
public final class P4InfoParser extends java.lang.ObjectParser of P4Info to PI pipeline model instances.
-
-
Field Summary
Fields Modifier and Type Field Description static intNO_SIZE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.onosproject.net.pi.model.PiPipelineModelparse(java.net.URL p4InfoUrl)Parse the given URL pointing to a P4Info file (in text format) to a PI pipeline model.
-
-
-
Field Detail
-
NO_SIZE
public static final int NO_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public static org.onosproject.net.pi.model.PiPipelineModel parse(java.net.URL p4InfoUrl) throws P4InfoParserExceptionParse the given URL pointing to a P4Info file (in text format) to a PI pipeline model.- Parameters:
p4InfoUrl- URL to P4Info in text form- Returns:
- PI pipeline model
- Throws:
P4InfoParserException- if the P4Info file cannot be parsed (see message)
-
-