def RemovePorts(self, request, context): bcmutils.rem_ports(bcm, request.vlanid, request.pbm) return autobcm_pb2.ConfigReply(message='Removed ports from VLAN ' + str(request.vlanid))
def ShowPVLANs(self, request, context): return autobcm_pb2.ConfigReply(message=bcmutils.show_pvlans(bcm))
def DestroyVLAN(self, request, context): bcmutils.destroy_vlan(bcm, request.vlanid) return autobcm_pb2.ConfigReply(message='Destroyed VLAN ' + str(request.vlanid))
def SetPVLAN(self, request, context): bcmutils.set_pvlan(bcm, request.pbm, request.vlanid) return autobcm_pb2.ConfigReply( message='Set default VLAN of port(s) ' + str(request.pbm) + ' to VLAN ' + str(request.vlanid))
def AddPorts(self, request, context): bcmutils.add_ports(bcm, request.vlanid, request.pbm, request.ubm) return autobcm_pb2.ConfigReply(message='Added ports to VLAN ' + str(request.vlanid))
def CreateVLAN(self, request, context): bcmutils.create_vlan(bcm, request.vlanid) return autobcm_pb2.ConfigReply(message='Created VLAN ' + str(request.vlanid))
def ShowActivePorts(self, request, context): mess = bcmutils.show_active_ports(bcm) return autobcm_pb2.ConfigReply(message=mess)