Skip to content

Commit 6a445b6

Browse files
committed
api: fix sorting, checking of outstanding APIs to support
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 713bca6 commit 6a445b6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ui/docs/api/apis.primate.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ grep api -R config | sed "s/.*api: '//g" | sed "s/'.*//g" | grep -v \.js | sort
55
grep store.getters.apis -R . | sed "s/' in.*//g" | sed "s/').*//g" | grep "'" | sed "s/.*'//g" | grep -v ']' >> apis.txt
66
grep 'permission:\ \[' -R config | sed "s/.*permission: \[ '//g" | grep -v .js | sed "s/', '/\\n/g" | sed "s/'.*//g" >> apis.txt
77
cat apis.txt | sort | uniq > apis.uniq
8+
rm -f apis.txt
89
mv apis.uniq ../docs/api/apis.txt
910
cd ../docs/api
10-
diff -Naur apis.old apis.txt | grep ^- | grep -v "^--" | sed 's/^-//g' | grep -v -i -e cisco -e nicira -e baremetal -e srx -e f5 -e brocade -e palo -e autoscale -e counter -e condition -e ucs -e netscaler -e bigswitch -e ovs -e globalloadbalancer -e opendaylight -e region -e quota >> apis.remaining
11+
diff -Naur apis.old apis.txt | grep ^- | grep -v "^--" | sed 's/^-//g' | grep -v -i -e cisco -e nicira -e baremetal -e srx -e f5 -e brocade -e palo -e autoscale -e counter -e condition -e ucs -e netscaler -e bigswitch -e ovs -e globalloadbalancer -e opendaylight -e region -e quota | sort | uniq > apis.remaining
12+
13+
echo "$(cat apis.txt | wc -l) APIs are supported by Primate"
14+
echo "$(cat apis.remaining | wc -l) APIs are remaining"

0 commit comments

Comments
 (0)