def create_pc(self): """ Create a basic PortChannel used as setup for test cases """ if1 = Interface('eth1/8') if2 = Interface('eth1/5') pc = PortChannel('444') pc.attach(if1) pc.attach(if2) return pc
def create_pc(self): """ creates port channel and interface objects attach interfaces to the portchannel """ if1 = Interface('eth1/8') if2 = Interface('eth1/5') pc = PortChannel('444') pc.attach(if1) pc.attach(if2) return pc