Compare commits
2 Commits
0922204c30
...
f412eaf55c
Author | SHA1 | Date |
---|---|---|
Uriel Fanelli | f412eaf55c | |
Uriel Fanelli | b2559cb022 |
|
@ -28,7 +28,6 @@ Configuration contains:
|
||||||
"MulticastConfig": {
|
"MulticastConfig": {
|
||||||
"MIpAddr": "239.0.0.19",
|
"MIpAddr": "239.0.0.19",
|
||||||
"MPort": "9898",
|
"MPort": "9898",
|
||||||
"MaxDatagramSize": 18
|
|
||||||
},
|
},
|
||||||
"InterfaceConfig": {
|
"InterfaceConfig": {
|
||||||
"ExistingInterface": "eth0",
|
"ExistingInterface": "eth0",
|
||||||
|
@ -42,7 +41,7 @@ Where:
|
||||||
|
|
||||||
- MIpAddr is the multicast address all the nodes will use to align.Must be the same on all nodes.
|
- MIpAddr is the multicast address all the nodes will use to align.Must be the same on all nodes.
|
||||||
- Mport: Multicast port to subscribe. Must be the same on all nodes.
|
- Mport: Multicast port to subscribe. Must be the same on all nodes.
|
||||||
- MaxDataGramSize : obsolete, will be removed soon.
|
- ~MaxDataGramSize : obsolete, will be removed soon.~ DONE.
|
||||||
|
|
||||||
- ExistingInterface: the name of your ingress interface (eth0, eno0 , enps18, whatever your system is using. This may be different node by node)
|
- ExistingInterface: the name of your ingress interface (eth0, eno0 , enps18, whatever your system is using. This may be different node by node)
|
||||||
- BridgeIpCidr: the IP address and mask you want to share among servers.
|
- BridgeIpCidr: the IP address and mask you want to share among servers.
|
||||||
|
|
3
conf.go
3
conf.go
|
@ -26,10 +26,9 @@ func init() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
a.MulticastConfig.MaxDatagramSize = len("75568770-cee4-4506-a790-036e232fb1b3")
|
|
||||||
MulticastEntity.MIpAddr = a.MulticastConfig.MIPAddr
|
MulticastEntity.MIpAddr = a.MulticastConfig.MIPAddr
|
||||||
MulticastEntity.MPort = a.MulticastConfig.MPort
|
MulticastEntity.MPort = a.MulticastConfig.MPort
|
||||||
MulticastEntity.MaxDatagramSize = a.MulticastConfig.MaxDatagramSize
|
MulticastEntity.MaxDatagramSize = len("75568770-cee4-4506-a790-036e232fb1b3")
|
||||||
|
|
||||||
ZoreideBridge.BridgeIpCIDR = a.InterfaceConfig.BridgeIPCIDR
|
ZoreideBridge.BridgeIpCIDR = a.InterfaceConfig.BridgeIPCIDR
|
||||||
ZoreideBridge.ExistingInterface = a.InterfaceConfig.ExistingInterface
|
ZoreideBridge.ExistingInterface = a.InterfaceConfig.ExistingInterface
|
||||||
|
|
5
types.go
5
types.go
|
@ -22,9 +22,8 @@ type AbstractMulticast struct {
|
||||||
|
|
||||||
type AbstractConfig struct {
|
type AbstractConfig struct {
|
||||||
MulticastConfig struct {
|
MulticastConfig struct {
|
||||||
MIPAddr string `json:"MIpAddr"`
|
MIPAddr string `json:"MIpAddr"`
|
||||||
MPort string `json:"MPort"`
|
MPort string `json:"MPort"`
|
||||||
MaxDatagramSize int `json:"MaxDatagramSize"`
|
|
||||||
} `json:"MulticastConfig"`
|
} `json:"MulticastConfig"`
|
||||||
InterfaceConfig struct {
|
InterfaceConfig struct {
|
||||||
ExistingInterface string `json:"ExistingInterface"`
|
ExistingInterface string `json:"ExistingInterface"`
|
||||||
|
|
Loading…
Reference in New Issue