title: Need help parsing Cisco output
body: <p>I am having some issue trying to parse the mrib table of a router. I have been able to parse some of it out but having issue. For example I have the following output:</p>
  
  <pre class="lang-none prettyprint-override"><code>(192.168.1.1,232.0.6.8) RPF nbr: 55.44.23.1 Flags: RPF
    Up: 4w1d
    Incoming Interface List
      TenGigE0/0/0/1 Flags: A, Up: 4w1d
    Outgoing Interface List
      TenGigE0/0/0/10 Flags: A, Up: 4w1d
  
  (192.168.55.3,232.0.10.69) RPF nbr: 66.76.44.130 Flags: RPF
    Up: 4w1d
    Incoming Interface List
      TenGigE0/0/0/0 Flags: A, Up: 4w1d
      TenGigE0/1/0/0 Flags: A, Up: 4w1d
      TenGigE0/2/0/0 Flags: A, Up: 4w1d
    Outgoing Interface List
      TenGigE0/0/0/10 Flags: A, Up: 4w1d
      TenGigE0/3/0/0 Flags: A, Up: 4w1d
      TenGigE0/4/0/0 Flags: A, Up: 4w1d
  </code></pre>
  
  <p>I am trying to build a data structure with the above output. For clarity I want it to look like this:</p>
  
  <pre><code>{'192.168.1.1,232.0.6.8': {'incoming': ['TenGigE0/0/0/1'],
                             'outgoing': ['TenGigE0/0/0/10']}}
  </code></pre>
  
  <p>The above is sounds simple. One of the main issues I am having is with the second block. I am trying to figure a way to iterate through the interfaces after the Incoming and Outgoing interface.</p>
  
  <p>Not necessarily asking for the code but what would be the best way to do something like this?</p>