#NEWLINE# def _get_interface_name_from_hosting_port( self , port ) : #NEWLINE# #INDENT# '\n        Extract the underlying subinterface name for a port\n        e.g. Port-channel10.200 or GigabitEthernet0/0/0.500\n        ' #NEWLINE# try : #NEWLINE# #INDENT# vlan = int_prefix [ 'hosting_info' ] [ 'segmentation_id' ] #NEWLINE# int_prefix = port [ 'hosting_info' ] [ 'physical_interface' ] #NEWLINE# return ( '%s.%s' % ( int_prefix , vlan ) ) #NEWLINE# #UNINDENT# except KeyError as e : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# 'key' : e , #NEWLINE# #UNINDENT# } #NEWLINE# raise cfg_exc . DriverExpectedKeyNotSetException ( ** params )