search for: octet4

Displaying 3 results from an estimated 3 matches for "octet4".

Did you mean: octets
2006 Mar 30
2
Functional test confusion
...mask: 255.255.255.0 and # range: 1..253 @network_segment = NetworkSegment.new(params[:network_segment]) if @network_segment.save @network_segment.ip_range.each do |ip| NetworkIpaddress.create(:network_segment_id => @network_segment.id, :octet4 => ip) end flash[:notice] = ''Network segment was successfully created'' redirect_to :action => ''show'' else render :action => ''new'' end end end I have been writing a functional test but am very confused....
2012 Feb 06
3
Script to automatically update externip. Useful for a host with dynamic public IP
...IP address. Updates asterisk's externip value and does a sip reload if necessary. # Last modified 06/02/2012 is_ip(){ input=$1 octet1=$(echo $input | cut -d "." -f1) octet2=$(echo $input | cut -d "." -f2) octet3=$(echo $input | cut -d "." -f3) octet4=$(echo $input | cut -d "." -f4) stat=1 if [[ $input =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]] && [ $octet1 -le 255 ] && [ $octet2 -le 255 ] && [ $octet3 -le 255 ] && [ $octet4 -le 255 ]; then stat=0 fi return $stat } EXTERNIP=`wg...
2006 Mar 30
0
Specify callbacks before associations
...he parent has registered the callbacks and they won?t be inherited." Does this mean a model should be defined as: class NetworkSegment < ActiveRecord::Base after_create :create_network_ipaddresses after_update :update_network_ipaddresses has_many :network_ipaddresses, :order => octet4 #... end or class NetworkSegment < ActiveRecord::Base has_many :network_ipaddresses, :order => octet4 after_create :create_network_ipaddresses after_update :update_network_ipaddresses #... end Thanks, -Jer -- Posted via http://www.ruby-forum.com/.