Revision d6a7518a src/Ganeti/Constants.hs

b/src/Ganeti/Constants.hs
4759 4759
glusterPortDefault = 24007
4760 4760

  
4761 4761
-- * Instance communication
4762
--
4763
-- The instance communication attaches an additional NIC, named
4764
-- @instanceCommunicationNicPrefix@:@instanceName@ and prefixed by
4765
-- @instanceCommunicationMacPrefix@, to the instances that have
4766
-- instance communication enabled.  This NIC is part of the network
4767
-- @instanceCommunicationNetworkName@, which is in turn created by
4768
-- 'gnt-network'.  This network is defined as
4769
-- @instanceCommunicationNetwork4@ for IPv4 and
4770
-- @instanceCommunicationNetwork6@ for IPv6.
4762 4771

  
4763 4772
instanceCommunicationDoc :: String
4764 4773
instanceCommunicationDoc =
4765 4774
  "Enable or disable the communication mechanism for an instance"
4766 4775

  
4767
instanceCommunicationNetwork :: String
4768
instanceCommunicationNetwork = "ganeti:network:communication"
4776
instanceCommunicationMacPrefix :: String
4777
instanceCommunicationMacPrefix = "52:54:00"
4778

  
4779
-- | The instance communication network is a link-local IPv4/IPv6
4780
-- network because the communication is meant to be exclusive between
4781
-- the host and the guest and not routed outside the node.
4782
instanceCommunicationNetwork4 :: String
4783
instanceCommunicationNetwork4 = "169.254.0.0/16"
4784

  
4785
-- | See 'instanceCommunicationNetwork4'.
4786
instanceCommunicationNetwork6 :: String
4787
instanceCommunicationNetwork6 = "fe80::/10"
4788

  
4789
instanceCommunicationNetworkLink :: String
4790
instanceCommunicationNetworkLink = "communication_rt"
4769 4791

  
4770 4792
instanceCommunicationNicPrefix :: String
4771 4793
instanceCommunicationNicPrefix = "ganeti:communication:"

Also available in: Unified diff