code: def get(self):
          
          return dict(interfaces=self.interfaces.getall(),
                      instances=self.instances.getall())
docs: Returns the spanning-tree configuration as a dict object
  
          The dictionary object represents the entire spanning-tree
          configuration derived from the nodes running config.  This
          includes both globally configuration attributes as well as
          interfaces and instances.  See the StpInterfaces and StpInstances
          classes for the key/value pair definitions.
  
          Note:
              See the individual classes for detailed message structures
  
          Returns:
              A Python dictionary object of key/value pairs the represent
              the entire supported spanning-tree configuration::
  
                  {
                      "mode": [mstp, none],
                      "interfaces": {...},
                      "instances": {...}
                  }