Readme.adoc revision 579bc2fc
1= Building
2
3== Custom ODL Oxygen build:
4
5[source]
6----
7git clone https://git.opendaylight.org/gerrit/netconf
8cd netconf
9git checkout -b honeycomb release/oxygen
10----
11
12=== <copy-config> support:
13
14[source]
15----
16git fetch https://git.opendaylight.org/gerrit/netconf refs/changes/06/69606/1 && git cherry-pick FETCH_HEAD
17----
18
19=== ncclient support:
20
21[source]
22----
23git fetch https://git.opendaylight.org/gerrit/netconf refs/changes/81/71181/1 && git cherry-pick FETCH_HEAD
24mvn clean install -pl netconf/netconf-util,netconf/netconf-netty-util,netconf/mdsal-netconf-connector
25----
26
27=== <validate> support:
28
29[source]
30----
31git fetch https://git.opendaylight.org/gerrit/netconf refs/changes/56/72756/4 && git cherry-pick FETCH_HEAD
32git fetch https://git.opendaylight.org/gerrit/netconf refs/changes/34/73034/2 && git cherry-pick FETCH_HEAD
33git fetch https://git.opendaylight.org/gerrit/netconf refs/changes/95/74795/3 && git cherry-pick FETCH_HEAD
34mvn clean install -pl netconf/mdsal-netconf-connector
35----
36
37== Custom Honeycomb build
38
39Clone project, checkout desired branch or use master branch:
40[source]
41----
42git clone https://gerrit.fd.io/r/honeycomb
43cd honeycomb
44----
45
46=== <validate> support:
47[source]
48----
49git fetch ssh://mgradzki@gerrit.fd.io:29418/honeycomb refs/changes/40/14040/3 && git cherry-pick FETCH_HEAD
50mvn clean install -pl infra/data-impl
51----
52
53== Custom HC2VPP build
54
551. Clone project, checkout desired branch or use master branch:
56[source]
57----
58git clone https://gerrit.fd.io/r/hc2vpp
59cd hc2vpp
60----
61
622. Build vpp-integration module from hc2vpp project:
63[source]
64----
65mvn clean install -pl vpp-integration/minimal-distribution
66----
67
683. (optional) Build honeycomb package
69[source]
70----
71./packaging/deb/xenial/debuild.sh
72----
73
74== Build ncclient
75
76[source]
77----
78git clone https://github.com/ncclient/ncclient.git
79cd ncclient
80sudo python setup.py install
81----
82
83= Running examples
84
85Start vpp.
86
87Start honeycomb
88(either from hc2vpp builddir or using package built in previous steps).
89
90NOTE: Remember that HC by default persists config and restores it after restart.
91You can disable this behaviour using config/honeycomb.json.
92
93== <copy-config> examples
94
95=== ACL
96[source]
97----
98./acl/test_acl.sh
99./acl/test_acl_updates.sh
100----
101
102=== NAT
103[source]
104----
105./acl/test_nat.sh
106./acl/test_nat_updates.sh
107----
108
109== <validate> examples
110
111== ACL <edit-config> + <validate>
112[source]
113----
114./edit_config.py --validate acl/config_invalid_acl.xml
115----
116
117