Adaptions for ARMv7
This commit is contained in:
parent
a2f0dc2e7d
commit
24181a2933
8 changed files with 18 additions and 14 deletions
|
|
@ -142,6 +142,7 @@ server {
|
||||||
Start nginx daemon
|
Start nginx daemon
|
||||||
```
|
```
|
||||||
sudo /etc/init.d/nginx start
|
sudo /etc/init.d/nginx start
|
||||||
|
sudo systemctl start nginx.service # alternative using systemd
|
||||||
```
|
```
|
||||||
Start the clixon restconf daemon
|
Start the clixon restconf daemon
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -542,7 +542,7 @@ clixon_plugin_init(clicon_handle h)
|
||||||
struct timeval retention = {0,0};
|
struct timeval retention = {0,0};
|
||||||
int argc; /* command-line options (after --) */
|
int argc; /* command-line options (after --) */
|
||||||
char **argv;
|
char **argv;
|
||||||
char c;
|
int c;
|
||||||
|
|
||||||
clicon_debug(1, "%s backend", __FUNCTION__);
|
clicon_debug(1, "%s backend", __FUNCTION__);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <fcgiapp.h>
|
#include <fcgiapp.h>
|
||||||
#include <curl/curl.h>
|
|
||||||
|
|
||||||
/* cligen */
|
/* cligen */
|
||||||
#include <cligen/cligen.h>
|
#include <cligen/cligen.h>
|
||||||
|
|
@ -329,7 +328,7 @@ clixon_plugin_init(clicon_handle h)
|
||||||
{
|
{
|
||||||
int argc; /* command-line options (after --) */
|
int argc; /* command-line options (after --) */
|
||||||
char **argv = NULL;
|
char **argv = NULL;
|
||||||
char c;
|
int c;
|
||||||
|
|
||||||
clicon_debug(1, "%s restconf", __FUNCTION__);
|
clicon_debug(1, "%s restconf", __FUNCTION__);
|
||||||
/* Get user command-line options (after --) */
|
/* Get user command-line options (after --) */
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,11 @@ You need to build and install the clixon utility programs before running the tes
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
You need to start nginx for some of the text. There are instructions in
|
You need to configure and start nginx for the restconf tests:
|
||||||
|
* The [example](../example/main/README.md) has instructions on how to edit your nginx config files
|
||||||
* If you run systemd: `sudo systemctl start nginx.service`
|
* If you run systemd: `sudo systemctl start nginx.service`
|
||||||
* The [example](../example/README.md) has instructions
|
|
||||||
|
You may need to install the `time` utility (`/usr/bin/time`).
|
||||||
|
|
||||||
## Prefix variable
|
## Prefix variable
|
||||||
|
|
||||||
|
|
@ -65,7 +67,7 @@ You may add your site-specific modifications in a `site.sh` file. Example:
|
||||||
# Add test to this list that you dont want run
|
# Add test to this list that you dont want run
|
||||||
SKIPLIST="test_openconfig.sh test_yangmodels.sh"
|
SKIPLIST="test_openconfig.sh test_yangmodels.sh"
|
||||||
# Parse yang openconfig models from https://github.com/openconfig/public
|
# Parse yang openconfig models from https://github.com/openconfig/public
|
||||||
OPENCONFIG=/home/olof/src/clixon/test/public
|
OPENCONFIG=/usr/local/share/openconfig/public
|
||||||
# Parse yangmodels from https://github.com/YangModels/yang
|
# Parse yangmodels from https://github.com/YangModels/yang
|
||||||
YANGMODELS=/usr/local/share/yangmodels
|
YANGMODELS=/usr/local/share/yangmodels
|
||||||
# Standard IETF RFC yang files.
|
# Standard IETF RFC yang files.
|
||||||
|
|
|
||||||
|
|
@ -78,10 +78,10 @@ testname=
|
||||||
# Parse yangmodels from https://github.com/YangModels/yang
|
# Parse yangmodels from https://github.com/YangModels/yang
|
||||||
# Recommended: checkout yangmodels elsewhere in the tree and set the env
|
# Recommended: checkout yangmodels elsewhere in the tree and set the env
|
||||||
# to that
|
# to that
|
||||||
: ${YANGMODELS=$(pwd)/yang}
|
#: ${YANGMODELS=$(pwd)/yang} # just skip if not set
|
||||||
|
|
||||||
# Parse yang openconfig models from https://github.com/openconfig/public
|
# Parse yang openconfig models from https://github.com/openconfig/public
|
||||||
: ${OPENCONFIG=$(pwd)/public}
|
#: ${OPENCONFIG=$(pwd)/public} # just skip if not set
|
||||||
|
|
||||||
# Standard IETF RFC yang files.
|
# Standard IETF RFC yang files.
|
||||||
: ${IETFRFC=../yang/standard}
|
: ${IETFRFC=../yang/standard}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ fyang=$dir/test.yang
|
||||||
new "openconfig"
|
new "openconfig"
|
||||||
if [ ! -d "$OPENCONFIG" ]; then
|
if [ ! -d "$OPENCONFIG" ]; then
|
||||||
# err "Hmm Openconfig dir does not seem to exist, try git clone https://github.com/openconfig/public?"
|
# err "Hmm Openconfig dir does not seem to exist, try git clone https://github.com/openconfig/public?"
|
||||||
exit
|
if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OCDIR=$OPENCONFIG/release/models
|
OCDIR=$OPENCONFIG/release/models
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ fyang=$dir/test.yang
|
||||||
|
|
||||||
if [ ! -d "$YANGMODELS" ]; then
|
if [ ! -d "$YANGMODELS" ]; then
|
||||||
# err "Hmm Yangmodels dir does not seem to exist, try git clone https://github.com/YangModels/yang?"
|
# err "Hmm Yangmodels dir does not seem to exist, try git clone https://github.com/YangModels/yang?"
|
||||||
exit
|
if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Experimental IEEE
|
# Experimental IEEE
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,5 @@
|
||||||
This directory contains Clixon utility programs, ie, programs that are
|
This directory contains Clixon utility programs, ie, programs that are
|
||||||
good to have for testing, analysis, etc, but not an actual part of
|
good to have for testing, analysis, etc, but not an actual part of
|
||||||
delivered code.
|
delivered code.
|
||||||
|
|
||||||
|
Note, streams utility may need: libcurl4-openssl-dev or corresponding.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue