<s> from django . core . urlresolvers import reverse <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from horizon import tables <EOL> class CreateL2PolicyLink ( tables . LinkAction ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> url = "<STR_LIT>" <EOL> classes = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> class EditL2PolicyLink ( tables . LinkAction ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> classes = ( "<STR_LIT>" , "<STR_LIT>" , ) <EOL> def get_link_url ( self , l2policy ) : <EOL> base_url = reverse ( "<STR_LIT>" , <EOL> kwargs = { '<STR_LIT>' : l2policy . id } ) <EOL> return base_url <EOL> class DeleteL2PolicyLink ( tables . DeleteAction ) : <EOL> name = "<STR_LIT>" <EOL> action_present = _ ( "<STR_LIT>" ) <EOL> action_past = _ ( "<STR_LIT>" ) <EOL> data_type_singular = _ ( "<STR_LIT>" ) <EOL> data_type_plural = _ ( "<STR_LIT>" ) <EOL> class L2PolicyTable ( tables . DataTable ) : <EOL> name = tables . Column ( "<STR_LIT:name>" , <EOL> verbose_name = _ ( "<STR_LIT:Name>" ) , <EOL> link = "<STR_LIT>" ) <EOL> description = tables . Column ( "<STR_LIT:description>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> id = tables . Column ( "<STR_LIT:id>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> l3_policy_id = tables . Column ( <EOL> "<STR_LIT>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> inject_default_route = tables . Column ( <EOL> "<STR_LIT>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> class Meta ( object ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> table_actions = ( CreateL2PolicyLink , DeleteL2PolicyLink ) <EOL> row_actions = ( EditL2PolicyLink , DeleteL2PolicyLink ) <EOL> class CreateL3PolicyLink ( tables . LinkAction ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> url = "<STR_LIT>" <EOL> classes = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> class EditL3PolicyLink ( tables . LinkAction ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> classes = ( "<STR_LIT>" , "<STR_LIT>" , ) <EOL> def get_link_url ( self , l3policy ) : <EOL> base_url = reverse ( "<STR_LIT>" , <EOL> kwargs = { '<STR_LIT>' : l3policy . id } ) <EOL> return base_url <EOL> class DeleteL3PolicyLink ( tables . DeleteAction ) : <EOL> name = "<STR_LIT>" <EOL> action_present = _ ( "<STR_LIT>" ) <EOL> action_past = _ ( "<STR_LIT>" ) <EOL> data_type_singular = _ ( "<STR_LIT>" ) <EOL> data_type_plural = _ ( "<STR_LIT>" ) <EOL> class L3PolicyTable ( tables . DataTable ) : <EOL> name = tables . Column ( "<STR_LIT:name>" , <EOL> verbose_name = _ ( "<STR_LIT:Name>" ) , <EOL> link = "<STR_LIT>" ) <EOL> description = tables . Column ( "<STR_LIT:description>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> id = tables . Column ( "<STR_LIT:id>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> ip_version = tables . Column ( "<STR_LIT>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> ip_pool = tables . Column ( "<STR_LIT>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> subnet_prefix_length = tables . Column ( <EOL> "<STR_LIT>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> external_segments = tables . Column ( "<STR_LIT>" , <EOL> verbose_name = _ ( "<STR_LIT>" ) ) <EOL> class Meta ( object ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> table_actions = ( CreateL3PolicyLink , DeleteL3PolicyLink , ) <EOL> row_actions = ( EditL3PolicyLink , DeleteL3PolicyLink , ) <EOL> class CreateServicePolicyLink ( tables . LinkAction ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> url = "<STR_LIT>" <EOL> classes = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> class EditServicePolicyLink ( tables . LinkAction ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> classes = ( "<STR_LIT>" , "<STR_LIT>" , ) <EOL> def get_link_url ( self , policy ) : <EOL> urlstring = "<STR_LIT>" <EOL> base_url = reverse ( urlstring , kwargs = { '<STR_LIT>' : policy . id } ) <EOL> return base_url <EOL> class DeleteServicePolicyLink ( tables . DeleteAction ) : <EOL> name = "<STR_LIT>" <EOL> action_present = _ ( "<STR_LIT>" ) <EOL> action_past = _ ( "<STR_LIT>" ) <EOL> data_type_singular = _ ( "<STR_LIT>" ) <EOL> data_type_plural = _ ( "<STR_LIT>" ) <EOL> class ServicePolicyTable ( tables . DataTable ) : <EOL> name = tables . Column ( "<STR_LIT:name>" , verbose_name = _ ( "<STR_LIT:Name>" ) , <EOL> link = "<STR_LIT>" ) <EOL> description = tables . Column ( "<STR_LIT:description>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> network_service_params = tables . Column ( '<STR_LIT>' , <EOL> verbose_name = _ ( "<STR_LIT>" ) ) <EOL> class Meta ( object ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> table_actions = ( CreateServicePolicyLink , DeleteServicePolicyLink , ) <EOL> row_actions = ( EditServicePolicyLink , DeleteServicePolicyLink , ) <EOL> class CreateExternalConnectivityLink ( tables . LinkAction ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> url = "<STR_LIT>" <EOL> classes = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> class EditExternalConnectivityLink ( tables . LinkAction ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> classes = ( "<STR_LIT>" , "<STR_LIT>" , ) <EOL> def get_link_url ( self , external_connectivity ) : <EOL> urlstring = "<STR_LIT>" <EOL> base_url = reverse ( urlstring , <EOL> kwargs = { '<STR_LIT>' : external_connectivity . id } ) <EOL> return base_url <EOL> class DeleteExternalConnectivityLink ( tables . DeleteAction ) : <EOL> name = "<STR_LIT>" <EOL> action_present = _ ( "<STR_LIT>" ) <EOL> action_past = _ ( "<STR_LIT>" ) <EOL> data_type_singular = _ ( "<STR_LIT>" ) <EOL> data_type_plural = _ ( "<STR_LIT>" ) <EOL> class ExternalConnectivityTable ( tables . DataTable ) : <EOL> name = tables . Column ( "<STR_LIT:name>" , verbose_name = _ ( "<STR_LIT:Name>" ) , <EOL> link = "<STR_LIT>" ) <EOL> description = tables . Column ( "<STR_LIT:description>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> ip_version = tables . Column ( "<STR_LIT>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> cidr = tables . Column ( "<STR_LIT>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> class Meta ( object ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> table_actions = ( CreateExternalConnectivityLink , <EOL> DeleteExternalConnectivityLink , ) <EOL> row_actions = ( EditExternalConnectivityLink , <EOL> DeleteExternalConnectivityLink , ) <EOL> class CreateNATPoolLink ( tables . LinkAction ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> url = "<STR_LIT>" <EOL> classes = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> class DeleteNATPoolLink ( tables . DeleteAction ) : <EOL> name = "<STR_LIT>" <EOL> action_present = _ ( "<STR_LIT>" ) <EOL> action_past = _ ( "<STR_LIT>" ) <EOL> data_type_singular = _ ( "<STR_LIT>" ) <EOL> data_type_plural = _ ( "<STR_LIT>" ) <EOL> class EditNATPoolLink ( tables . LinkAction ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> classes = ( "<STR_LIT>" , "<STR_LIT>" , ) <EOL> def get_link_url ( self , nat_pool ) : <EOL> urlstring = "<STR_LIT>" <EOL> base_url = reverse ( urlstring , <EOL> kwargs = { '<STR_LIT>' : nat_pool . id } ) <EOL> return base_url <EOL> class NATPoolTable ( tables . DataTable ) : <EOL> name = tables . Column ( "<STR_LIT:name>" , verbose_name = _ ( "<STR_LIT:Name>" ) , <EOL> link = "<STR_LIT>" ) <EOL> description = tables . Column ( "<STR_LIT:description>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> ip_version = tables . Column ( "<STR_LIT>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> cidr = tables . Column ( "<STR_LIT>" , verbose_name = _ ( "<STR_LIT>" ) ) <EOL> external_segment = tables . Column ( "<STR_LIT>" , <EOL> verbose_name = _ ( "<STR_LIT>" ) ) <EOL> class Meta ( object ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> table_actions = ( CreateNATPoolLink , DeleteNATPoolLink , ) <EOL> row_actions = ( EditNATPoolLink , DeleteNATPoolLink , ) </s>
