Class P4InfoParser


  • public final class P4InfoParser
    extends java.lang.Object
    Parser of P4Info to PI pipeline model instances.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int NO_SIZE  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.onosproject.net.pi.model.PiPipelineModel parse​(java.net.URL p4InfoUrl)
      Parse the given URL pointing to a P4Info file (in text format) to a PI pipeline model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parse

        public static org.onosproject.net.pi.model.PiPipelineModel parse​(java.net.URL p4InfoUrl)
                                                                  throws P4InfoParserException
        Parse 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)