Compare commits

..

No commits in common. "f412eaf55c1a409ad3f29a57be2638e709b8050c" and "0922204c300386e6e6b864546a3bb2ede382e2b2" have entirely different histories.

3 changed files with 7 additions and 4 deletions

View File

@ -28,6 +28,7 @@ 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",
@ -41,7 +42,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.~ DONE. - MaxDataGramSize : obsolete, will be removed soon.
- 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.

View File

@ -26,9 +26,10 @@ 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 = len("75568770-cee4-4506-a790-036e232fb1b3") MulticastEntity.MaxDatagramSize = a.MulticastConfig.MaxDatagramSize
ZoreideBridge.BridgeIpCIDR = a.InterfaceConfig.BridgeIPCIDR ZoreideBridge.BridgeIpCIDR = a.InterfaceConfig.BridgeIPCIDR
ZoreideBridge.ExistingInterface = a.InterfaceConfig.ExistingInterface ZoreideBridge.ExistingInterface = a.InterfaceConfig.ExistingInterface

View File

@ -22,8 +22,9 @@ 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"`