Returns the specified interfaces STP configuration resource

        The STP interface resource contains the following

            * name (str): The interface name
            * portfast (bool): The spanning-tree portfast admin state
            * bpduguard (bool): The spanning-tree bpduguard admin state
            * portfast_type (str): The spanning-tree portfast <type> value.
                Valid values include "edge", "network", "normal"

        Args:
            name (string): The interface identifier to retrieve the config
                for.  Note: Spanning-tree interfaces are only supported on
                Ethernet and Port-Channel interfaces

        Returns:
            dict: A resource dict object that represents the interface
                configuration.

            None: If the specified interace is not a STP port

def get(self, name):
        """Returns the specified interfaces STP configuration resource

        The STP interface resource contains the following

            * name (str): The interface name
            * portfast (bool): The spanning-tree portfast admin state
            * bpduguard (bool): The spanning-tree bpduguard admin state
            * portfast_type (str): The spanning-tree portfast <type> value.
                Valid values include "edge", "network", "normal"

        Args:
            name (string): The interface identifier to retrieve the config
                for.  Note: Spanning-tree interfaces are only supported on
                Ethernet and Port-Channel interfaces

        Returns:
            dict: A resource dict object that represents the interface
                configuration.

            None: If the specified interace is not a STP port
        """
        if not isvalidinterface(name):
            return None

        config = self.get_block(r'^interface\s%s$' % name)
        resp = dict()
        resp.update(self._parse_bpduguard(config))
        resp.update(self._parse_portfast(config))
        resp.update(self._parse_portfast_type(config))
        return resp