Skip to content

Commit

Permalink
recent changes..
Browse files Browse the repository at this point in the history
  • Loading branch information
Engin Eren committed Jul 5, 2016
1 parent cf3077b commit 7b9af55
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
9 changes: 1 addition & 8 deletions Federation/create_allow-list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,9 @@ fi

#cat $FEDINFO/in/prod.txt | cut -d : -f1 | sort -u | awk -F. '{if ($NF == "uk" || $NF == "fr" || $NF == "it" || $(NF-1) == "cern" ) print $(NF-2)"."$(NF-1)"."$NF; else if ( $(NF-1) == "vanderbilt" ) print $(NF-3)"."$(NF-2)"."$(NF-1)"."$NF; else if ( $(NF-1) == "mit" ) print $(NF-2)"."$(NF-1)"."$NF; else print $(NF-1)"."$NF}' | sort -u > $FEDINFO/in/prod_domain.txt

#Quick fix for "[" character in prod.txt
cat $FEDINFO/in/prod.txt | awk '{ if ($1 == "[") print "Unknown.Host"; else print $1;}' > $FEDINFO/in/tmp
cp $FEDINFO/in/tmp $FEDINFO/in/prod.txt
rm $FEDINFO/in/tmp



cat $FEDINFO/in/prod.txt | sort -u | awk -F. '{if ($NF == "uk" && $(NF-2) != "rl" || $NF == "fr" || $(NF-1) == "cern" || $(NF-1) == "fnal" ) print $(NF-2)"."$(NF-1)"."$NF; else if ( $(NF-2) == "cnaf") print $(NF-4)"."$(NF-2); else if ( $NF == "it" && $(NF-2) != "cnaf" ) print $(NF-2)"."$(NF-1)"."$NF; else if ( $(NF-1) == "vanderbilt" ) print $(NF-3)"."$(NF-2)"."$(NF-1)"."$NF; else if ( $(NF-1) == "mit" ) print $(NF-2)"."$(NF-1)"."$NF; else if ( $(NF-2) == "rl" ) print $(NF-3)"."$(NF-2)"."$(NF-1)"."$NF; else if ( $NF == "kr") print $(NF-3)"."$(NF-2)"."$(NF-1)"."$NF; else if ( $NF == "be" ) print $(NF-2)"."$(NF-1)"."$NF; else print $(NF-1)"."$NF}' | sort -u > $FEDINFO/in/prod_domain.txt

cat $FEDINFO/in/trans.txt | cut -d : -f1 | sort -u | awk -F. '{if ($NF == "uk" || $NF == "fr" || $NF == "kr" ) print $(NF-2)"."$(NF-1)"."$NF; else if ($NF == "it" && $(NF-2) == "cnaf" ) print $(NF-4)"."$(NF-3)"."$(NF-2)"."$(NF-1)"."$NF; else if ( $(NF-2) == "ts" ) print $(NF-3)"."$(NF-2)"."$(NF-1)"."$NF; else print $(NF-1)"."$NF}' | sort -u > $FEDINFO/in/trans_domain.txt
cat $FEDINFO/in/trans.txt | cut -d : -f1 | sort -u | awk -F. '{if ($NF == "uk" || $NF == "fr" || $NF == "kr" || $NF == "it" && $(NF-2) != "cnaf" ) print $(NF-2)"."$(NF-1)"."$NF; else if ($NF == "it" && $(NF-2) == "cnaf" ) print $(NF-4)"."$(NF-3)"."$(NF-2)"."$(NF-1)"."$NF; else print $(NF-1)"."$NF}' | sort -u > $FEDINFO/in/trans_domain.txt


exit 0;
25 changes: 23 additions & 2 deletions Federation/exceptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"VOname" : "T2_US_Nebraska"
},

"ds-05-01.cr.cnaf.infn.it" : {
"ds-t3-01.cr.cnaf.infn.it" : {
"VOname" : "T3_IT_Bologna"
},

"ds-05-02.cr.cnaf.infn.it" : {
"ds-t3-02.cr.cnaf.infn.it" : {
"VOname" : "T3_IT_Bologna"
},

Expand Down Expand Up @@ -65,6 +65,27 @@

"cmsxrd.ts.infn.it" : {
"VOname" : "T3_IT_Trieste"
},

"se11.accre.vanderbilt.edu" : {
"VOname" : "T2_US_Vanderbilt"
},

"se9.accre.vanderbilt.edu" : {
"VOname" : "T2_US_Vanderbilt"
},

"se1.accre.vanderbilt.edu" : {
"VOname" : "T2_US_Vanderbilt"
},

"se4.accre.vanderbilt.edu" : {
"VOname" : "T2_US_Vanderbilt"
},

"se8.accre.vanderbilt.edu" : {
"VOname" : "T2_US_Vanderbilt"
}


}

0 comments on commit 7b9af55

Please sign in to comment.