def _add_t1_stack_interfaces(self, interfaces, dp_index, t2_dps):
    t2_port = (T2_STACK_PORT_START + (dp_index * 2))
    for (index, t2_dp) in enumerate(t2_dps):
        port = (T1_STACK_PORT_START + index)
        description = ('to %s port %s' % (t2_dp, t2_port))
        interfaces[port] = Interface(description=description, stack=StackLink(dp=t2_dp, port=t2_port))
def _add_t1_stack_interfaces(self, interfaces, dp_index, t2_dps):
    t2_port = (T2_STACK_PORT_START + (dp_index * 2))
    for (index, t2_dp) in enumerate(t2_dps):
        port = (T1_STACK_PORT_START + index)
        description = ('to %s port %s' % (t2_dp, t2_port))
        interfaces[port] = Interface(description=description, stack=StackLink(dp=t2_dp, port=t2_port))