X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fsvc_circuit.pm;h=7f2ef807c0551a7d1bdeafa2522bb8f5c0c5d9ca;hb=a354fed1dedc65cf62e63d940e1cfb9c4364e6d3;hp=e90bce54c70985a49b2eb5f9cf911bc787cce49a;hpb=8a28145d78b44e2f51a5a71dc805bee977ac0738;p=freeside.git diff --git a/FS/FS/svc_circuit.pm b/FS/FS/svc_circuit.pm index e90bce54c..7f2ef807c 100644 --- a/FS/FS/svc_circuit.pm +++ b/FS/FS/svc_circuit.pm @@ -75,7 +75,7 @@ space or checked for uniqueness. =item endpoint_mac_addr - the MAC address of the endpoint. -=item internal_circuit_id - internal circuit ID string defined by the provider +=item internal_circuit_id - internal circuit ID string =back @@ -201,6 +201,7 @@ sub check { || $self->ut_textn('vendor_order_status') || $self->ut_ipn('endpoint_ip_addr') || $self->ut_textn('endpoint_mac_addr') + || $self->ut_textn('internal_circuit_id') ; # no canonical values yet for vendor_order_status or _type @@ -235,6 +236,17 @@ sub search_sql_addl_from { 'LEFT JOIN circuit_type USING ( typenum )'; } +sub _upgrade_data { + + require FS::Misc::FixIPFormat; + FS::Misc::FixIPFormat::fix_bad_addresses_in_table( + 'svc_circuit', 'svcnum', 'endpoint_ip_addr', + ); + + ''; + +} + =back =head1 SEE ALSO @@ -244,4 +256,3 @@ L =cut 1; -