Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
devops
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osm
devops
Commits
320a2da3
Commit
320a2da3
authored
8 years ago
by
Mike Marchetti
Browse files
Options
Downloads
Patches
Plain Diff
- add ^ to regex to avoid matching against 10.*/etc networks
Signed-off-by:
Mike Marchetti
<
mmarchetti@sandvine.com
>
parent
e460692a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
installers/export_ips
+1
-1
1 addition, 1 deletion
installers/export_ips
with
1 addition
and
1 deletion
installers/export_ips
+
1
−
1
View file @
320a2da3
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
# 23 Sept 2016 -- Gerardo Garcia -- Genesis
# 23 Sept 2016 -- Gerardo Garcia -- Genesis
#Get IP addresses
#Get IP addresses
DEFAULT_IF=`route -n |awk '$1~/0.0.0.0/ {print $8}'`
DEFAULT_IF=`route -n |awk '$1~/
^
0.0.0.0/ {print $8}'`
export DEFAULT_IP=`ip -o -4 a |grep ${DEFAULT_IF}|awk '{split($4,a,"/"); print a[1]}'`
export DEFAULT_IP=`ip -o -4 a |grep ${DEFAULT_IF}|awk '{split($4,a,"/"); print a[1]}'`
export VCA_CONTAINER_IP=`lxc list VCA -c 4|grep eth0 |awk '{print $2}'`
export VCA_CONTAINER_IP=`lxc list VCA -c 4|grep eth0 |awk '{print $2}'`
export SO_CONTAINER_IP=`lxc list SO-ub -c 4|grep eth0 |awk '{print $2}'`
export SO_CONTAINER_IP=`lxc list SO-ub -c 4|grep eth0 |awk '{print $2}'`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment